很好的 Laravel 单点登录解决方案

Good single sign-on solution for Laravel(很好的 Laravel 单点登录解决方案)
本文介绍了很好的 Laravel 单点登录解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我计划在我的 Laravel 5 中引入单点登录 (SSO)应用程序.基本上,我在不同的域上有两个网站.这个想法很简单:如果我已经在其中一个上通过了身份验证,我不需要在另一个上登录.

我一直在寻找解决方案,但我想问你:你知道或可以推荐一个包或库来为 Laravel 应用程序提供 SSO 吗?>

也欢迎使用本机 PHP 解决方案.谢谢!

解决方案

您可以使用 SAML 标准来解决您的 SSO 需求.

查看可帮助您实施 SAML 服务提供商的此 github 存储库: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 单点登录解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)