Azure B2 C Rest API в теле User Journey пуст - PullRequest
0 голосов
/ 05 мая 2020

У меня есть вызов REST API, который я могу нормально вызвать с помощью технического профиля проверки, но если я добавлю его в путешествие пользователя в качестве шага оркестрации, тело вызова будет нулевым, когда он попадет в серверный API, таким образом ошибаясь. Я следую всей документации Microsoft, и, похоже, все настроено правильно. Вызовы находятся в разных политиках IEF, но все они имеют один и тот же технический профиль REST.

Вот технический профиль:

<TechnicalProfile Id="RESTTransactionalEmail">
      <DisplayName>REST API to Update the backend </DisplayName>
      <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.RestfulProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
      <Metadata>
        <Item Key="ServiceUrl">https://{Settings:APIURI}/apiendpoint</Item>
        <Item Key="AuthenticationType">Basic</Item>
        <Item Key="SendClaimsIn">Body</Item>
      </Metadata>
      <CryptographicKeys>
        <Key Id="BasicAuthenticationUsername" StorageReferenceId="<key>" />
        <Key Id="BasicAuthenticationPassword" StorageReferenceId="<secret>" /> 
      </CryptographicKeys>      
     <InputClaims>
        <InputClaim ClaimTypeReferenceId="extension_{Settings:ExtensionAppId}_memberid" PartnerClaimType="memberId"/>
        <InputClaim ClaimTypeReferenceId="email" PartnerClaimType="toRecipient"/>
        <InputClaim ClaimTypeReferenceId="templateName" PartnerClaimType="templateName" />
        <InputClaim ClaimTypeReferenceId="key" PartnerClaimType="modelKey1" />
        <InputClaim ClaimTypeReferenceId="phoneChange" PartnerClaimType="modelValue1" />
     </InputClaims>
      <UseTechnicalProfileForSessionManagement ReferenceId="SM-Noop" />
    </TechnicalProfile>

Это этап оркестрации:

    <OrchestrationStep Order="11" Type="ClaimsExchange">
      <ClaimsExchanges>
        <ClaimsExchange Id="RESTSendEmail" TechnicalProfileReferenceId="RESTTransactionalEmail" />
      </ClaimsExchanges>
    </OrchestrationStep>

Кто-нибудь еще сталкивался с этим или есть предложения, что попробовать?

...