我正在按照本指南在 Azure AD B2C 中设置 SAML IDP 。当我在 UserJourney 中将它作为 OrchestrationStep 执行时它工作正常,但是当我将它作为 SubJourney 的一部分执行时,我得到以下异常:
[
{
"Kind": "Headers",
"Content": {
"UserJourneyRecorderEndpoint": "urn:journeyrecorder:applicationinsights",
"CorrelationId": "<removed>",
"EventInstance": "Event:ClaimsExchange",
"TenantId": "<removed>",
"PolicyId": "<removed>"
}
},
{
"Kind": "Transition",
"Content": {
"EventName": "ClaimsExchange",
"StateName": "Initial"
}
},
{
"Kind": "Predicate",
"Content": "Web.TPEngine.StateMachineHandlers.ClaimsExchangeMessageValidationHandler"
},
{
"Kind": "FatalException",
"Content": {
"Time": "4:03 PM",
"Exception": {
"Kind": "Handled",
"HResult": "80131515",
"Message": "ValidateAsync is not supported for Web.TPEngine.Providers.RestfulProvider",
"Data": {}
}
}
}
]
有效的 OrchestrationStep
<OrchestrationStep Order="3" Type="ClaimsExchange">
<ClaimsExchanges>
<ClaimsExchange Id="MySamlExchange" TechnicalProfileReferenceId="my-saml-idp-SAML2" />
</ClaimsExchanges>
</OrchestrationStep>
产生错误的 OrchestrationStep
<OrchestrationStep Order="3" Type="InvokeSubJourney" >
<JourneyList>
<Candidate SubJourneyReferenceId="SamlFederationJourney" />
</JourneyList>
</OrchestrationStep>
...
<SubJourneys>
<SubJourney Id="SamlFederationJourney" Type="Call">
<OrchestrationSteps>
<OrchestrationStep Order="1" Type="ClaimsExchange">
<ClaimsExchanges>
<ClaimsExchange Id="MySamlExchange" TechnicalProfileReferenceId="my-saml-idp-SAML2" />
</ClaimsExchanges>
</OrchestrationStep>
</OrchestrationSteps>
</SubJourney>
</SubJourneys>