บูรณาการกับ ForgeRock

Aug 16 2020

ForgeRock ส่งคืนข้อผิดพลาด HTTP 500 สำหรับ SSO เสมอ ฉันใช้ itfoxtec-identity-saml2 สำหรับการโยง (เปลี่ยนเส้นทาง) ในแอปพลิเคชันหลักของ asp.net เป็น IDP สำหรับ forgeRock และทำตามขั้นตอนที่กล่าวถึงในgithub

นี่คือคำขอการตรวจสอบสิทธิ์ SAML ที่ส่งออกไป

<saml2p:AuthnRequest xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" ID="_f149a6ed-298a-4d41-951f-3817a5e3f7ae" Version="2.0" IssueInstant="2020-08-15T21:53:37.9212248Z" Destination="http://dev.mytest.com/sso/SSORedirect/metaAlias/RRC/idp" AssertionConsumerServiceURL="http://localhost:60017/General/Account/AssertionConsumerService"><saml2:Issuer>http://dev.mytest.com:80/sso</saml2:Issuer><saml2:Subject><saml2:NameID> https://localhost:60017</saml2:NameID></saml2:Subject><saml2p:NameIDPolicy AllowCreate="true" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" /></saml2p:AuthnRequest>

2 คำถามฉันถูกถามจาก ForgeRock

  1. ฉันสามารถใช้แท็ก samlp และ saml แทนแท็ก saml2p และ saml2 ในคำขอ SAML ได้หรือไม่
  2. การผูกไม่ได้กล่าวถึงใน SAMLf คำขอรับรองความถูกต้อง

ข้อความผิดพลาด

ข้อผิดพลาด HTTP 500 จาก ForgeRock

คำตอบ

AndersRevsgaard Aug 18 2020 at 18:42

ฉันสงสัยเล็กน้อยเกี่ยวกับคำถามของคุณ หากคุณกำลังถามเกี่ยวกับชื่อเนมสเปซ XML ไม่สามารถเปลี่ยนชื่อเนมสเปซ XML ใน XML ที่คอมโพเนนต์ ITfoxtec Identity SAML 2.0สร้างขึ้น

การใช้การโยงการเปลี่ยนเส้นทางเป็นเรื่องที่ถูกต้อง

คุณกำลังส่ง 'https: // localhost: 60017' ในแท็ก NameID <saml2:NameID> https://localhost:60017</saml2:NameID>กับพื้นที่ มันดูผิด? ควรเป็นชื่อผู้ใช้สำหรับผู้ใช้ที่คุณต้องการเข้าสู่ระบบ