2017-10-17 35 views
2

我已经成功创建了一个AAD B2C自定义策略,它可以调用我的应用程序。我们可以在Azure Active Directory B2C自定义策略中的RESTful API调用上设置自定义标头吗?

什么可以在这里找到类似:

Integrate REST API claims exchanges in your Azure AD B2C user journey as validation on user input

这里:

Secure your RESTful services using client certificates

<ClaimsProvider> 
    <DisplayName>XYZ API</DisplayName> 
    <TechnicalProfiles> 
     <TechnicalProfile Id="XYZ"> 
      <DisplayName>XYZ</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://example.com/api/1.0/Users</Item> 
       <Item Key="AuthenticationType">ClientCertificate</Item> 
       <Item Key="SendClaimsIn">Body</Item> 
      </Metadata> 
      <CryptographicKeys> 
       <Key Id="ClientCertificate" StorageReferenceId="B2C_1A_XYZRestClientCertificate" /> 
      </CryptographicKeys> 
      <InputClaims> 
       <InputClaim ClaimTypeReferenceId="givenName" PartnerClaimType="givenName" /> 
       <InputClaim ClaimTypeReferenceId="surname" PartnerClaimType="surname" /> 
       <InputClaim ClaimTypeReferenceId="displayName" PartnerClaimType="displayName" /> 
       <InputClaim ClaimTypeReferenceId="objectId" PartnerClaimType="objectId" /> 
       <InputClaim ClaimTypeReferenceId="email" PartnerClaimType="email" /> 
       <InputClaim ClaimTypeReferenceId="otherMails" PartnerClaimType="otherMails" /> 
      </InputClaims> 
      <OutputClaims> 
      </OutputClaims> 
      <UseTechnicalProfileForSessionManagement ReferenceId="SM-Noop" /> 
     </TechnicalProfile> 
    </TechnicalProfiles> 
</ClaimsProvider> 

我们的应用程序喜欢使用自定义HTTP标头跟踪一些有关呼叫者的信息,例如tran saction id。是否可以添加类似于声明的HTTP标头?可能的东西喜欢:

<InputHeaders> 
    <InputHeader ClaimTypeReferenceId="objectId" HeaderName="transactionId" /> 
    <InputHeader Value="AzureB2C" HeaderName="callerName" /> 
</InputHeaders> 

回答

1

现在,它是不可能分裂(例如身体,头部,查询字符串)不同的地方之间的一些说法。我建议您在Azure反馈门户网站上为Azure Active Directory添加此功能的请求。

相关问题