0
無視: https://github.com/auth0/passport-wsfed-saml2ADFSは経由して、私はwsfedを介してユーザのADFSの詳細情報を取得し、私の主張要求
と私は名前IDを取得します。
のmetadata.xml(私のサーバーアドレスはhttp://localhost/app/で置換した、それはHTTPSで走っている):私はfalseに「オプション」代わるたび
<?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>
も、それがどんな主張を返しません。 ADFSが自分の主張を無視する理由は誰ですか?
私が言及した特定のクレームがコールバックに返されることを期待します。私が "役割"と言えば、私は応答で役割のプロパティを取得することを期待しています。どのデータをADFSから戻したいのですか? – adfsdoesntwork
ADFSで構成されたクレームルールが決定要因になります。クレームルールなし - クレームなし。 – nzpcmad