0
무시 : https://github.com/auth0/passport-wsfed-saml2ADFS를 통해, 내가 wsfed를 통해 사용자의 ADFS 정보를 얻을 내 청구 요청
와 나는 단지 nameID를 얻을.
metadata.xml이 (내 서버 주소가 http://localhost/app/로 대체, 그것은 HTTPS에서 실행됩니다) :
<?xml version="1.0" encoding="utf-8"?>
<EntityDescriptor ID="_5b6cd05c-a5e3-470d-a2fc-6c6f66633d1b" entityID="http://localhost/app/" xmlns="urn:oasis:names:tc:SAML:2.0:metadata">
<RoleDescriptor xsi:type="fed:ApplicationServiceType" xmlns:fed="http://docs.oasis-open.org/wsfed/federation/200706" protocolSupportEnumeration="http://docs.oasis-open.org/wsfed/federation/200706" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fed:ClaimTypesRequested>
<auth:ClaimType Uri="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" Optional="true" xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706" />
<auth:ClaimType Uri="http://schemas.microsoft.com/ws/2008/06/identity/claims/role" Optional="true" xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706" />
</fed:ClaimTypesRequested>
<fed:TargetScopes>
<EndpointReference xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://localhost/app/</Address>
</EndpointReference>
</fed:TargetScopes>
<fed:PassiveRequestorEndpoint>
<EndpointReference xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://localhost/app/</Address>
</EndpointReference>
</fed:PassiveRequestorEndpoint>
</RoleDescriptor>
</EntityDescriptor>
내가 어떤 주장을 반환하지 않습니다 false로 "선택"교체도 할 때마다. ADFS에서 내 소유권 주장을 무시하는 이유는 무엇입니까?
내가 언급 한 특정 클레임이 콜백으로 반환 될 것으로 기대합니다. "역할"에 대해 언급하면 응답에서 역할 속성을 얻으 려합니다. ADFS에서 다시 가져올 데이터를 지정할 수 있습니까? – adfsdoesntwork
결정 요인은 ADFS에 구성된 클레임 규칙입니다. 클레임 규칙 없음 - 클레임 없음 – nzpcmad