重定向不适用于 SAML 登录,php-saml 与 Azure Active Directory
Redirect not working for SAML login, php-saml with Azure Active Directory
我已经使用 php-saml 集成了 SAML,以使用 WSO2 Server Identity Server 进行本地连接,并且运行良好。
但是,重定向在 Azure Active Directory 中不起作用。它只是重定向到 office.com 并停留在那里。
这是 Azure 的 SAML 响应:
ResponseData
status 302
statusText
httpVersion http/2.0
redirectURL https://login.microsoftonline.com/
headersSize -1
bodySize -1
_transferSize 690
_error null
WSO2 的 SAML 响应:
Response Data
status 302
statusText Found
httpVersion HTTP/1.1
redirectURL http://app.test
headersSize 884
bodySize 0
_transferSize 884
_error null
- 请确保代码中存在的重定向 URI ex: https://your.domain.name/oauth.php 必须在 Azure 门户中的重定向 url 应用程序注册中给出,然后请检查 SAML 的配置是否具有实体 url, signle sign on url 等..都是正确的。
- 确保在 saml 配置期间更新要上传的元数据中的 IDP 和 sp。
- Azure 广告仅支持 Https 协议,请确保您的重定向 url 以 Https 开头,localhost 除外
逐步阅读以下文档以了解更多详细信息
参考:
Azure AD Single Sign-On with SimpleSAMLphp – My IT Daily (wordpress.com)
我已经使用 php-saml 集成了 SAML,以使用 WSO2 Server Identity Server 进行本地连接,并且运行良好。
但是,重定向在 Azure Active Directory 中不起作用。它只是重定向到 office.com 并停留在那里。
这是 Azure 的 SAML 响应:
ResponseData
status 302
statusText
httpVersion http/2.0
redirectURL https://login.microsoftonline.com/
headersSize -1
bodySize -1
_transferSize 690
_error null
WSO2 的 SAML 响应:
Response Data
status 302
statusText Found
httpVersion HTTP/1.1
redirectURL http://app.test
headersSize 884
bodySize 0
_transferSize 884
_error null
- 请确保代码中存在的重定向 URI ex: https://your.domain.name/oauth.php 必须在 Azure 门户中的重定向 url 应用程序注册中给出,然后请检查 SAML 的配置是否具有实体 url, signle sign on url 等..都是正确的。
- 确保在 saml 配置期间更新要上传的元数据中的 IDP 和 sp。
- Azure 广告仅支持 Https 协议,请确保您的重定向 url 以 Https 开头,localhost 除外 逐步阅读以下文档以了解更多详细信息
参考: Azure AD Single Sign-On with SimpleSAMLphp – My IT Daily (wordpress.com)