在我的laravel應用程序中實現單點登錄。我決定使用這個插件https://github.com/aacotroneo/laravel-saml2,它基本上是着名的SimpleSamlPhp的包裝。使用Laravel上的SimpleSamlPhp包裝單點登錄
我通過作曲家,按照給定的信息Remember that you don't need to implement those routes, but you'll need to add them to your IDP configuration. For example, if you use simplesamlphp, add the following to /metadata/sp-remote.php
$metadata['http://laravel_url/saml/metadata'] = array(
'AssertionConsumerService' => 'http://laravel_url/saml/acs',
'SingleLogoutService' => 'http://laravel_url/saml/sls',
//the following two affect what the $Saml2user->getUserId() will return
'NameIDFormat' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent',
'simplesaml.nameidattribute' => 'uid'
);
我找不到metadata/sp-remote.php
,任何想法下載的代碼?並且就http://laravel_url/saml/acs
而言,我是否需要在服務器上部署saml?因爲目前插件代碼位於laravel核心體系結構代碼層次結構中的vendors
。
嗨,所以你必須安裝或配置'SimpleSamlPHP'?你好嗎? SAML集成?你能給我一些提示嗎? – ihue
@ihue我沒有機會回到那一部分,我可能很快就會這樣做,但不確定。 –