简体   繁体   English

如何将Google帐户凭据应用于我的PHP应用(SSO)?

[英]How can Google account credentials by applied to my PHP app (SSO)?

I have a PHP application that will be accessed by users who are already signed into Google ( the app runs in an iFrame on a Google Site that requires Google login) 我有一个PHP应用程序,将由已登录Google的用户访问(该应用程序在需要Google登录的Google网站上的iFrame中运行)

What is the best SSO approach that uses Google login, so users have the same identity in both places? 使用Google登录的最佳SSO方法是什么,因此用户在两个地方都具有相同的身份?

Best to use a some OpenID opensource? 最好使用一些OpenID开源? .. zend/cake/symf plugin? .. zend / cake / symf插件? GoogleApps infrastructure? GoogleApps基础架构? .. or a identity service like Janrain? ..还是像Janrain这样的身份服务?

Is it too early to go with OpenID Connect? 使用OpenID Connect还为时尚早? etc. 等等

Thanks much. 非常感谢。

OpenID works well - and indeed, is good enough for StackOverflow - you probably used it to register your account here. OpenID运行良好 - 事实上,对StackOverflow来说已经足够了 - 你可能用它在这里注册你的帐户。

There's an article called Getting Started with OpenID . 有一篇名为OpenID with OpenID的文章。 Although it's on Zend's website, it doesn't seem to be tied to the Zend framework, so is a good starting point. 虽然它在Zend的网站上,但它似乎与Zend框架无关,因此是一个很好的起点。 It covers all the modules you need to download, and includes an example to help get you started. 它涵盖了您需要下载的所有模块,并包含一个示例以帮助您入门。

Also take a look on simplesamlphp and its integration with Google: 另请查看simplesamlphp及其与Google的集成:

Setting up a simpleSAMLphp SAML 2.0 IdP to use with Google Apps 设置simpleSAMLphp SAML 2.0 IdP以与Google Apps一起使用

Is an open source project based on php. 是一个基于PHP的开源项目。 Nice comunity and complete documentation. 很好的社区和完整的文档。

Hi again I recently discovered this interesting project HybridAuth , an SSO PHP Library for authentication through identity providers like Facebook, Twitter, Google, Yahoo, LinkedIn, MySpace, Windows Live, Tumblr, Identica, LastFM, OpenID, PayPal, Vimeo, Foursquare, AOL, Viadeo, and others. 嗨再次,我最近发现了这个有趣的项目HybridAuth ,一个SSO PHP库,用于通过身份提供商进行身份验证,如Facebook,Twitter,Google,Yahoo,LinkedIn,MySpace,Windows Live,Tumblr,Identica,LastFM,OpenID,PayPal,Vimeo,Foursquare,AOL ,Viadeo等。

I didnt test it but seems also a good solution. 我没有测试它,但似乎也是一个很好的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在哪里可以找到我的PHP for Google App保存的凭据 - Where can I find the saved credentials for my PHP for Google App Google SAML APP SSO 与 php 应用程序集成 - Google SAML APP SSO integrate with php application php应用程序中的Google SAML APP SSO身份验证 - Google SAML APP SSO authentication in php application 我如何避免在运行Docker Container的PHP应用程序中的配置上进行硬编码的数据库凭据 - How can I avoid hard-coded database credentials on config in my PHP app running into Docker Container 如何使用服务帐户凭据访问Google Spreadsheets? - How to access Google Spreadsheets with a service account credentials? 如何发送管理员帐户的凭据,以便他们可以在Google上创建用户帐户? - how do I send the credentials of an administrator account so that they can create user accounts on google? 如何使用 get_contents 提供我的凭据? php - how I can give my credentials with get_contents? php 如何从我的PHP应用程序登录Google帐户? - How to login with Google Account from my PHP application? 我们如何设置与服务器一起设置的谷歌应用帐户 - how can we set google app account set with server 如何使用 Microsoft AD 为内部 PHP 应用程序实施单点登录 (SSO)? - How can I implement single sign-on (SSO) using Microsoft AD for an internal PHP app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM