問題描述
我計(jì)劃在我的 Laravel 5 中引入單點(diǎn)登錄 (SSO)應(yīng)用程序.基本上,我在不同的域上有兩個(gè)網(wǎng)站.這個(gè)想法很簡(jiǎn)單:如果我已經(jīng)在其中一個(gè)上通過了身份驗(yàn)證,我不需要在另一個(gè)上登錄.
我一直在尋找解決方案,但我想問你:你知道或可以推薦一個(gè)包或庫(kù)來為 Laravel 應(yīng)用程序提供 SSO 嗎?>
也歡迎使用本機(jī) PHP 解決方案.謝謝!
您可以使用 SAML 標(biāo)準(zhǔn)來解決您的 SSO 需求.
查看可幫助您實(shí)施 SAML 服務(wù)提供商的此 github 存儲(chǔ)庫(kù):https://github.com/aacotroneo/laravel-saml2
如果您需要實(shí)現(xiàn) SAML 身份提供程序,您可以使用 simpleSAMLphp 并使用 Lavarel 數(shù)據(jù)庫(kù)作為身份驗(yàn)證源.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
這篇關(guān)于很好的 Laravel 單點(diǎn)登錄解決方案的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!