duanchen1937 2019-06-20 05:07 采纳率: 0%
浏览 418

SAML(PHP)使用onelogin工具包

I set up the SAML(PHP) using onelogin toolkit. It is redirecting to the Onelogin login page. Once given the users credential it is redirecting to the 405 error page.

  • 写回答

1条回答 默认 最新

  • drf65218 2019-06-20 20:38
    关注

    Question: Once given the users credential it is redirecting to the 405 error page.

    Answer:
    405 error (Method Not Allowed) indicates an incorrect method (post, get, etc.) is applied to SAML assertion consumer service endpoint such as "/saml/acs".

    (I) The most popular SAML assertion consumer service endpoint of SAML SP web application provides POST REST, for example,

        <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://sp.example.org/Shibboleth.sso/SAML2/POST" index="1"/>
    

    (II) Chrome network debugger indicates that (II.a) a POST request is made to the acs URL, success (302 Found) (II.b) a GET request is made to the acs URL, failure (405 error).

    Resolution:
    (I) Log in to your OneLogin organization (e.g., https://example.onelogin.com/ for a company called "example.com") as an administrator,
    Click APPS > Company Apps,
    on the Company Apps screen,
    Select your SAML SP web application, e.g., SAML Test Connector (SP Shibboleth),
    Configure OneLogin SAML IdP with your SAML SP web application,
    and ensure that you enter SAML assertion consumer service HTTP-POST endpoint of your SAML SP web application into Configuration > Application Details ACS (Consumer) URL* (required).

    Note that OneLogin supports HTTP-POST (POST request) instead of HTTP-REDIECT (GET request) by default.

    OneLogin uses POST request (NOT Get request) to deliver SAML SAML assertion verification request to your web application/SAML SP's assertion consumer service endpoint.

    (II) The 2-Minute Guide to Fixing HTTP Error 405 (Method Not Allowed) provides three (3) practical methods to debug HTTP Error 405 for general web request (not limited to SAML assertion verification request).

    评论

报告相同问题?

悬赏问题

  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效