Laravel的良好单点登录解决方案 [英] Good single sign-on solution for Laravel
问题描述
我计划在我的Laravel 5中引入单点登录(SSO)应用程序.基本上,我有两个位于不同域的网站.这个想法很简单:如果我已经在其中一个上进行了身份验证,则无需在另一个上登录.
我一直在寻找解决方案已有一段时间,但是我想问你:您知道或可以推荐一个软件包或库来向Laravel应用程序提供SSO吗? >
也欢迎使用本机PHP解决方案.谢谢!
您可以使用SAML标准来解决您的SSO需求.
查看此github存储库,该存储库可帮助您实现SAML服务提供者: https://github.com/aacotroneo/laravel-saml2
如果需要实现SAML身份提供程序,则可以使用simpleSAMLphp并将Lavarel数据库用作身份验证源. https://simplesamlphp.org/docs/stable/simplesamlphp-idp
I plan to introduce a single sign-on (SSO) to my Laravel 5 applications. Basically, I have two websites on different domains. The idea is simple: if I'm already authenticated on one of them, I don't need to sign in on the other.
I've been looking for a solution for a while now, but I would like to ask you: Do you know or can recommend a package or library to provide SSO to Laravel application?
Native PHP solutions are also welcome. Thanks!
You can use the SAML standard in order to solve your SSO needs.
Review this github repository that help you implement a SAML service provider: https://github.com/aacotroneo/laravel-saml2
If you need to implement a SAML Identity provider you can use simpleSAMLphp and use Lavarel database as authentication source. https://simplesamlphp.org/docs/stable/simplesamlphp-idp
这篇关于Laravel的良好单点登录解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!