私のlaravelアプリケーションでのシングルサインオンの実装。私はこのプラグインを基本的に有名なSimpleSamlPhpのラッパーであるhttps://github.com/aacotroneo/laravel-saml2を使用することに決めました。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
@hue私はその部分に戻ってくる機会を得られなかった、私はすぐにそれを行うかもしれないが、確かに。 –