Как предварительно заполнить адрес электронной почты в комбинированном siginsignup - PullRequest
0 голосов
/ 27 июня 2019

Это относится к пользовательской политике регистрации пользователей. У меня есть самоутвержденный шаг оркестровки, который собирает электронный адрес пользователя перед объединенным этапом оркестровки подписи. Я хочу заполнить адрес электронной почты на этапе входа в систему, но не могу заставить его работать.

Шаги оркестровки

  <OrchestrationStep Order="1" Type="ClaimsExchange" ContentDefinitionReferenceId="api.selfasserted.email">
      <ClaimsExchanges>
        <ClaimsExchange Id="SelfAssertedEmailExchange" TechnicalProfileReferenceId="SelfAsserted-CollectEmailAddress-NoError" />
      </ClaimsExchanges>
    </OrchestrationStep>

    <!--calls Azure function GetEmailDomain to get user domain -->
    <OrchestrationStep Order="2" Type="ClaimsExchange">
      <ClaimsExchanges>
        <ClaimsExchange Id="EmailDomainExchange" TechnicalProfileReferenceId="REST-API-GetEmailDomain" />
      </ClaimsExchanges>
    </OrchestrationStep>

    <OrchestrationStep Order="3" Type="CombinedSignInAndSignUp" ContentDefinitionReferenceId="api.signuporsignin">
      <Preconditions>
        <Precondition Type="ClaimEquals" ExecuteActionsIf="true">
          <Value>emailDomain</Value>
          <Value>ourdomain.com</Value>
          <Action>SkipThisOrchestrationStep</Action>
        </Precondition>
      </Preconditions>
      <ClaimsProviderSelections>
        <ClaimsProviderSelection TargetClaimsExchangeId="RushEnterprisesExchange" />
        <ClaimsProviderSelection ValidationClaimsExchangeId="LocalAccountSigninEmailExchange" />
      </ClaimsProviderSelections>
      <ClaimsExchanges>
        <ClaimsExchange Id="LocalAccountSigninEmailExchange" TechnicalProfileReferenceId="SelfAsserted-LocalAccountSignin-Email" />
      </ClaimsExchanges>
    </OrchestrationStep>

1 Ответ

0 голосов
/ 28 июня 2019

Если предположить, что утверждение email определено как утверждение вывода из технического профиля SelfAsserted-CollectEmailAddress , то оно также должно быть определено как утверждение ввода для SelfAsserted -LocalAccountSignin-Email технический профиль, так что поле имени для входа в него предварительно заполнено:

<TechnicalProfile Id="SelfAsserted-LocalAccountSignin-Email">
  <InputClaims>
    <InputClaim ClaimTypeReferenceId="email" PartnerClaimType="signInName" />
  </InputClaims>
</TechnicalProfile>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...