B2C 在登录 REST API 期间不发送电子邮件

时间:2021-03-24 02:20:05

标签: azure-ad-b2c azure-ad-b2c-custom-policy

我想在用户登录和注册时调用我的 rest api,但由于某种原因,b2c 在登录到我的 REST API 期间没有发送电子邮件,只有 objectid。但是,在注册过程中会发送电子邮件。

谁能告诉我我做错了什么?请参阅下面的 TrustFrameworkExtensions.xml

<TechnicalProfile Id="REST-API-SignUp">
        <DisplayName>Validate if the user is assingned to a study</DisplayName>
        <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.RestfulProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
        <Metadata>
          <!-- Set the ServiceUrl with your own REST API endpoint -->
          <Item Key="ServiceUrl"> https://ddfdc29506d6.ngrok.io/api/ValidateProfile</Item>
          <Item Key="SendClaimsIn">Body</Item>
          <!-- Set AuthenticationType to Basic or ClientCertificate in production environments -->
          <Item Key="AuthenticationType">None</Item>
          <!-- REMOVE the following line in production environments -->
          <Item Key="AllowInsecureAuthInProduction">true</Item>
        </Metadata>
        <InputClaims>
          <!-- Claims sent to your REST API -->
          <InputClaim ClaimTypeReferenceId="email" PartnerClaimType="email"/>
          <InputClaim ClaimTypeReferenceId="objectid" PartnerClaimType="oid"/>
        </InputClaims>
        <OutputClaims>
          <!-- Claims parsed from your REST API -->
          <OutputClaim ClaimTypeReferenceId="studyId" PartnerClaimType="studyId" />
        </OutputClaims>
        <UseTechnicalProfileForSessionManagement ReferenceId="SM-Noop" />
      </TechnicalProfile>

0 个答案:

没有答案