Good single sign-on solution for Laravel

2019-02-04 12:32发布

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!

1条回答
我命由我不由天
2楼-- · 2019-02-04 12:56

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

查看更多
登录 后发表回答