[英]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.