1
我試圖理解SAML並構建一個簡單的PHP應用程序,該應用程序將與a docker image of a SAML IDP對話。我設置了一個得到它運行在端口8081在onelogin中與SAML集成
我設置的IDP配置:
'idp' => [
// Identifier of the IdP entity (must be a URI)
'entityId' => 'app.example.com',
// SSO endpoint info of the IdP. (Authentication Request protocol)
'singleSignOnService' => [
// URL Target of the IdP where the Authentication Request Message
// will be sent.
'url' => 'http://localhost:8081/simplesaml/saml2/idp/metadata.php',
我不確定要放什麼東西在SP配置的URL值,但:
'sp' => [
// Identifier of the SP entity (must be a URI)
'entityId' => 'http://authproxy.example.com',
// Specifies info about where and how the <AuthnResponse> message MUST be
// returned to the requester, in this case our SP.
'assertionConsumerService' => [
// URL Location where the <Response> from the IdP will be returned
'url' => '',
我必須自己寫這個端點嗎?如果是這樣,它必須返回什麼?
php-saml存儲庫包含一個演示應用程序(https://github.com/onelogin/php-saml/tree/master/demo1)。用它來了解SAML的工作原理。 demo1應用在這裏描述: https://github.com/onelogin/php-saml#demo1 – smartin