Displaying the error message with an Azure AD B2C custom policy for password reset2019 Community Moderator ElectionHow to give a custom error message if on Forgotten Password Page of Azure B2C?Pre-register users with Azure AD B2CReset Password with Custom Policies in Azure AD B2CAzure B2C Custom policies login errorLimiting Claims by App in Azure AD B2CAzure AD B2C Password Reset policy without email verification stepError AADSTS50034 when attempting to change password for local Azure AD B2C users with a username from an external domainError IDX10500 after successfully resetting password via B2C policyForcing password change in AD B2C User JourneyAzure AD B2C custom policy set extension attribute valueAzure AD B2C Reset Password Custom Policy with confirmation screen

Stiffness of a cantilever beam

If curse and magic is two sides of the same coin, why the former is forbidden?

Define, (actually define) the "stability" and "energy" of a compound

How could a scammer know the apps on my phone / iTunes account?

A sequence that has integer values for prime indexes only:

What do Xenomorphs eat in the Alien series?

How to explain that I do not want to visit a country due to personal safety concern?

How to deal with taxi scam when on vacation?

Gantt Chart like rectangles with log scale

Do the common programs (for example: "ls", "cat") in Linux and BSD come from the same source code?

how to draw discrete time diagram in tikz

A limit with limit zero everywhere must be zero somewhere

Recruiter wants very extensive technical details about all of my previous work

Interplanetary conflict, some disease destroys the ability to understand or appreciate music

Sailing the cryptic seas

The difference between「N分で」and「後N分で」

Property of summation

Why one should not leave fingerprints on bulbs and plugs?

Look at your watch and tell me what time is it. vs Look at your watch and tell me what time it is

Employee lack of ownership

How to change two letters closest to a string and one letter immediately after a string using notepad++

Python if-else code style for reduced code for rounding floats

Brexit - No Deal Rejection

Can a druid choose the size of its wild shape beast?



Displaying the error message with an Azure AD B2C custom policy for password reset



2019 Community Moderator ElectionHow to give a custom error message if on Forgotten Password Page of Azure B2C?Pre-register users with Azure AD B2CReset Password with Custom Policies in Azure AD B2CAzure B2C Custom policies login errorLimiting Claims by App in Azure AD B2CAzure AD B2C Password Reset policy without email verification stepError AADSTS50034 when attempting to change password for local Azure AD B2C users with a username from an external domainError IDX10500 after successfully resetting password via B2C policyForcing password change in AD B2C User JourneyAzure AD B2C custom policy set extension attribute valueAzure AD B2C Reset Password Custom Policy with confirmation screen










0















I have followed the steps in this SO question and also the AssertBooleanClaimIsEqualToValue documentation.



However, I cannot get the error message to display.



I have an email link for a custom password reset flow. The link validates the user so I don't need the user to validate the email address as per the normal password reset flow.



When the user clicks the link, I set a custom attribute so that the user cannot click the link twice. In this case I want to display an error message.



<UserJourney Id="PasswordReset-Custom">
<OrchestrationSteps>

<OrchestrationStep Order="1" Type="ClaimsExchange">
<ClaimsExchanges>
<ClaimsExchange Id="PasswordResetUsingEmailAddress" TechnicalProfileReferenceId="AAD-UserReadUsingEmailAddress" />
</ClaimsExchanges>
</OrchestrationStep>

<OrchestrationStep Order="2" Type="ClaimsExchange">
<ClaimsExchanges>
<ClaimsExchange Id="NewCredentials" TechnicalProfileReferenceId="LocalAccountWritePasswordUsingObjectId" />
</ClaimsExchanges>
</OrchestrationStep>

<OrchestrationStep Order="3" Type="ClaimsExchange">
<ClaimsExchanges>
<ClaimsExchange Id="UpdateFlag" TechnicalProfileReferenceId="AAD-UserWriteProfileUsingObjectId" />
</ClaimsExchanges>
</OrchestrationStep>

<OrchestrationStep Order="4" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="JwtIssuer" />
</OrchestrationSteps>
<ClientDefinition ReferenceId="DefaultWeb" />
</UserJourney>


The AAD-UserWriteProfileUsingObjectId writes a flag to indicate the journey has been done.



<TechnicalProfile Id="LocalAccountWritePasswordUsingObjectId">
<DisplayName>Change password (username)</DisplayName>
<Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
<Metadata>
<Item Key="ContentDefinitionReferenceId">api.localaccountpasswordreset</Item>
<Item Key="UserMessageIfClaimsTransformationBooleanValueIsNotEqual">Process complete blah.</Item>
</Metadata>
<CryptographicKeys>
<Key Id="issuer_secret" StorageReferenceId="B2C_1A_TokenSigningKeyContainer" />
</CryptographicKeys>
<InputClaims>
<InputClaim ClaimTypeReferenceId="objectId" />
</InputClaims>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="newPassword" Required="true" />
<OutputClaim ClaimTypeReferenceId="reenterPassword" Required="true" />
</OutputClaims>
<ValidationTechnicalProfiles>
<ValidationTechnicalProfile ReferenceId="AAD-UserWritePasswordUsingObjectId" />
</ValidationTechnicalProfiles>
</TechnicalProfile>


This has a validation TP AAD-UserWritePasswordUsingObjectId.



<TechnicalProfile Id="AAD-UserWritePasswordUsingObjectId">
<Metadata>
<Item Key="Operation">Write</Item>
<Item Key="RaiseErrorIfClaimsPrincipalDoesNotExist">true</Item>
</Metadata>
<IncludeInSso>false</IncludeInSso>
<InputClaims>
<InputClaim ClaimTypeReferenceId="objectId" Required="true" />
</InputClaims>
<PersistedClaims>
<PersistedClaim ClaimTypeReferenceId="objectId" />
<PersistedClaim ClaimTypeReferenceId="newPassword" PartnerClaimType="password"/>
</PersistedClaims>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="dummyObjectId" />
</OutputClaims>
<OutputClaimsTransformations>
<OutputClaimsTransformation ReferenceId="EnsureCompletedIsTrue" />
</OutputClaimsTransformations>
<IncludeTechnicalProfile ReferenceId="AAD-Common" />
</TechnicalProfile>


This has an OutputClaimsTransformation EnsureCompletedIsTrue.



<ClaimsTransformation Id="EnsureCompletedIsTrue" TransformationMethod="AssertBooleanClaimIsEqualToValue">
<InputClaims>
<InputClaim ClaimTypeReferenceId="extension_Completed" TransformationClaimType="inputClaim" />
</InputClaims>
<InputParameters>
<InputParameter Id="valueToCompareTo" DataType="boolean" Value="true" />
</InputParameters>
</ClaimsTransformation>


So if extension_Completed is True it should throw the error message "Process complete".



I have checked that the flag is true but I never see the error message?










share|improve this question


























    0















    I have followed the steps in this SO question and also the AssertBooleanClaimIsEqualToValue documentation.



    However, I cannot get the error message to display.



    I have an email link for a custom password reset flow. The link validates the user so I don't need the user to validate the email address as per the normal password reset flow.



    When the user clicks the link, I set a custom attribute so that the user cannot click the link twice. In this case I want to display an error message.



    <UserJourney Id="PasswordReset-Custom">
    <OrchestrationSteps>

    <OrchestrationStep Order="1" Type="ClaimsExchange">
    <ClaimsExchanges>
    <ClaimsExchange Id="PasswordResetUsingEmailAddress" TechnicalProfileReferenceId="AAD-UserReadUsingEmailAddress" />
    </ClaimsExchanges>
    </OrchestrationStep>

    <OrchestrationStep Order="2" Type="ClaimsExchange">
    <ClaimsExchanges>
    <ClaimsExchange Id="NewCredentials" TechnicalProfileReferenceId="LocalAccountWritePasswordUsingObjectId" />
    </ClaimsExchanges>
    </OrchestrationStep>

    <OrchestrationStep Order="3" Type="ClaimsExchange">
    <ClaimsExchanges>
    <ClaimsExchange Id="UpdateFlag" TechnicalProfileReferenceId="AAD-UserWriteProfileUsingObjectId" />
    </ClaimsExchanges>
    </OrchestrationStep>

    <OrchestrationStep Order="4" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="JwtIssuer" />
    </OrchestrationSteps>
    <ClientDefinition ReferenceId="DefaultWeb" />
    </UserJourney>


    The AAD-UserWriteProfileUsingObjectId writes a flag to indicate the journey has been done.



    <TechnicalProfile Id="LocalAccountWritePasswordUsingObjectId">
    <DisplayName>Change password (username)</DisplayName>
    <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
    <Metadata>
    <Item Key="ContentDefinitionReferenceId">api.localaccountpasswordreset</Item>
    <Item Key="UserMessageIfClaimsTransformationBooleanValueIsNotEqual">Process complete blah.</Item>
    </Metadata>
    <CryptographicKeys>
    <Key Id="issuer_secret" StorageReferenceId="B2C_1A_TokenSigningKeyContainer" />
    </CryptographicKeys>
    <InputClaims>
    <InputClaim ClaimTypeReferenceId="objectId" />
    </InputClaims>
    <OutputClaims>
    <OutputClaim ClaimTypeReferenceId="newPassword" Required="true" />
    <OutputClaim ClaimTypeReferenceId="reenterPassword" Required="true" />
    </OutputClaims>
    <ValidationTechnicalProfiles>
    <ValidationTechnicalProfile ReferenceId="AAD-UserWritePasswordUsingObjectId" />
    </ValidationTechnicalProfiles>
    </TechnicalProfile>


    This has a validation TP AAD-UserWritePasswordUsingObjectId.



    <TechnicalProfile Id="AAD-UserWritePasswordUsingObjectId">
    <Metadata>
    <Item Key="Operation">Write</Item>
    <Item Key="RaiseErrorIfClaimsPrincipalDoesNotExist">true</Item>
    </Metadata>
    <IncludeInSso>false</IncludeInSso>
    <InputClaims>
    <InputClaim ClaimTypeReferenceId="objectId" Required="true" />
    </InputClaims>
    <PersistedClaims>
    <PersistedClaim ClaimTypeReferenceId="objectId" />
    <PersistedClaim ClaimTypeReferenceId="newPassword" PartnerClaimType="password"/>
    </PersistedClaims>
    <OutputClaims>
    <OutputClaim ClaimTypeReferenceId="dummyObjectId" />
    </OutputClaims>
    <OutputClaimsTransformations>
    <OutputClaimsTransformation ReferenceId="EnsureCompletedIsTrue" />
    </OutputClaimsTransformations>
    <IncludeTechnicalProfile ReferenceId="AAD-Common" />
    </TechnicalProfile>


    This has an OutputClaimsTransformation EnsureCompletedIsTrue.



    <ClaimsTransformation Id="EnsureCompletedIsTrue" TransformationMethod="AssertBooleanClaimIsEqualToValue">
    <InputClaims>
    <InputClaim ClaimTypeReferenceId="extension_Completed" TransformationClaimType="inputClaim" />
    </InputClaims>
    <InputParameters>
    <InputParameter Id="valueToCompareTo" DataType="boolean" Value="true" />
    </InputParameters>
    </ClaimsTransformation>


    So if extension_Completed is True it should throw the error message "Process complete".



    I have checked that the flag is true but I never see the error message?










    share|improve this question
























      0












      0








      0








      I have followed the steps in this SO question and also the AssertBooleanClaimIsEqualToValue documentation.



      However, I cannot get the error message to display.



      I have an email link for a custom password reset flow. The link validates the user so I don't need the user to validate the email address as per the normal password reset flow.



      When the user clicks the link, I set a custom attribute so that the user cannot click the link twice. In this case I want to display an error message.



      <UserJourney Id="PasswordReset-Custom">
      <OrchestrationSteps>

      <OrchestrationStep Order="1" Type="ClaimsExchange">
      <ClaimsExchanges>
      <ClaimsExchange Id="PasswordResetUsingEmailAddress" TechnicalProfileReferenceId="AAD-UserReadUsingEmailAddress" />
      </ClaimsExchanges>
      </OrchestrationStep>

      <OrchestrationStep Order="2" Type="ClaimsExchange">
      <ClaimsExchanges>
      <ClaimsExchange Id="NewCredentials" TechnicalProfileReferenceId="LocalAccountWritePasswordUsingObjectId" />
      </ClaimsExchanges>
      </OrchestrationStep>

      <OrchestrationStep Order="3" Type="ClaimsExchange">
      <ClaimsExchanges>
      <ClaimsExchange Id="UpdateFlag" TechnicalProfileReferenceId="AAD-UserWriteProfileUsingObjectId" />
      </ClaimsExchanges>
      </OrchestrationStep>

      <OrchestrationStep Order="4" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="JwtIssuer" />
      </OrchestrationSteps>
      <ClientDefinition ReferenceId="DefaultWeb" />
      </UserJourney>


      The AAD-UserWriteProfileUsingObjectId writes a flag to indicate the journey has been done.



      <TechnicalProfile Id="LocalAccountWritePasswordUsingObjectId">
      <DisplayName>Change password (username)</DisplayName>
      <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
      <Metadata>
      <Item Key="ContentDefinitionReferenceId">api.localaccountpasswordreset</Item>
      <Item Key="UserMessageIfClaimsTransformationBooleanValueIsNotEqual">Process complete blah.</Item>
      </Metadata>
      <CryptographicKeys>
      <Key Id="issuer_secret" StorageReferenceId="B2C_1A_TokenSigningKeyContainer" />
      </CryptographicKeys>
      <InputClaims>
      <InputClaim ClaimTypeReferenceId="objectId" />
      </InputClaims>
      <OutputClaims>
      <OutputClaim ClaimTypeReferenceId="newPassword" Required="true" />
      <OutputClaim ClaimTypeReferenceId="reenterPassword" Required="true" />
      </OutputClaims>
      <ValidationTechnicalProfiles>
      <ValidationTechnicalProfile ReferenceId="AAD-UserWritePasswordUsingObjectId" />
      </ValidationTechnicalProfiles>
      </TechnicalProfile>


      This has a validation TP AAD-UserWritePasswordUsingObjectId.



      <TechnicalProfile Id="AAD-UserWritePasswordUsingObjectId">
      <Metadata>
      <Item Key="Operation">Write</Item>
      <Item Key="RaiseErrorIfClaimsPrincipalDoesNotExist">true</Item>
      </Metadata>
      <IncludeInSso>false</IncludeInSso>
      <InputClaims>
      <InputClaim ClaimTypeReferenceId="objectId" Required="true" />
      </InputClaims>
      <PersistedClaims>
      <PersistedClaim ClaimTypeReferenceId="objectId" />
      <PersistedClaim ClaimTypeReferenceId="newPassword" PartnerClaimType="password"/>
      </PersistedClaims>
      <OutputClaims>
      <OutputClaim ClaimTypeReferenceId="dummyObjectId" />
      </OutputClaims>
      <OutputClaimsTransformations>
      <OutputClaimsTransformation ReferenceId="EnsureCompletedIsTrue" />
      </OutputClaimsTransformations>
      <IncludeTechnicalProfile ReferenceId="AAD-Common" />
      </TechnicalProfile>


      This has an OutputClaimsTransformation EnsureCompletedIsTrue.



      <ClaimsTransformation Id="EnsureCompletedIsTrue" TransformationMethod="AssertBooleanClaimIsEqualToValue">
      <InputClaims>
      <InputClaim ClaimTypeReferenceId="extension_Completed" TransformationClaimType="inputClaim" />
      </InputClaims>
      <InputParameters>
      <InputParameter Id="valueToCompareTo" DataType="boolean" Value="true" />
      </InputParameters>
      </ClaimsTransformation>


      So if extension_Completed is True it should throw the error message "Process complete".



      I have checked that the flag is true but I never see the error message?










      share|improve this question














      I have followed the steps in this SO question and also the AssertBooleanClaimIsEqualToValue documentation.



      However, I cannot get the error message to display.



      I have an email link for a custom password reset flow. The link validates the user so I don't need the user to validate the email address as per the normal password reset flow.



      When the user clicks the link, I set a custom attribute so that the user cannot click the link twice. In this case I want to display an error message.



      <UserJourney Id="PasswordReset-Custom">
      <OrchestrationSteps>

      <OrchestrationStep Order="1" Type="ClaimsExchange">
      <ClaimsExchanges>
      <ClaimsExchange Id="PasswordResetUsingEmailAddress" TechnicalProfileReferenceId="AAD-UserReadUsingEmailAddress" />
      </ClaimsExchanges>
      </OrchestrationStep>

      <OrchestrationStep Order="2" Type="ClaimsExchange">
      <ClaimsExchanges>
      <ClaimsExchange Id="NewCredentials" TechnicalProfileReferenceId="LocalAccountWritePasswordUsingObjectId" />
      </ClaimsExchanges>
      </OrchestrationStep>

      <OrchestrationStep Order="3" Type="ClaimsExchange">
      <ClaimsExchanges>
      <ClaimsExchange Id="UpdateFlag" TechnicalProfileReferenceId="AAD-UserWriteProfileUsingObjectId" />
      </ClaimsExchanges>
      </OrchestrationStep>

      <OrchestrationStep Order="4" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="JwtIssuer" />
      </OrchestrationSteps>
      <ClientDefinition ReferenceId="DefaultWeb" />
      </UserJourney>


      The AAD-UserWriteProfileUsingObjectId writes a flag to indicate the journey has been done.



      <TechnicalProfile Id="LocalAccountWritePasswordUsingObjectId">
      <DisplayName>Change password (username)</DisplayName>
      <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
      <Metadata>
      <Item Key="ContentDefinitionReferenceId">api.localaccountpasswordreset</Item>
      <Item Key="UserMessageIfClaimsTransformationBooleanValueIsNotEqual">Process complete blah.</Item>
      </Metadata>
      <CryptographicKeys>
      <Key Id="issuer_secret" StorageReferenceId="B2C_1A_TokenSigningKeyContainer" />
      </CryptographicKeys>
      <InputClaims>
      <InputClaim ClaimTypeReferenceId="objectId" />
      </InputClaims>
      <OutputClaims>
      <OutputClaim ClaimTypeReferenceId="newPassword" Required="true" />
      <OutputClaim ClaimTypeReferenceId="reenterPassword" Required="true" />
      </OutputClaims>
      <ValidationTechnicalProfiles>
      <ValidationTechnicalProfile ReferenceId="AAD-UserWritePasswordUsingObjectId" />
      </ValidationTechnicalProfiles>
      </TechnicalProfile>


      This has a validation TP AAD-UserWritePasswordUsingObjectId.



      <TechnicalProfile Id="AAD-UserWritePasswordUsingObjectId">
      <Metadata>
      <Item Key="Operation">Write</Item>
      <Item Key="RaiseErrorIfClaimsPrincipalDoesNotExist">true</Item>
      </Metadata>
      <IncludeInSso>false</IncludeInSso>
      <InputClaims>
      <InputClaim ClaimTypeReferenceId="objectId" Required="true" />
      </InputClaims>
      <PersistedClaims>
      <PersistedClaim ClaimTypeReferenceId="objectId" />
      <PersistedClaim ClaimTypeReferenceId="newPassword" PartnerClaimType="password"/>
      </PersistedClaims>
      <OutputClaims>
      <OutputClaim ClaimTypeReferenceId="dummyObjectId" />
      </OutputClaims>
      <OutputClaimsTransformations>
      <OutputClaimsTransformation ReferenceId="EnsureCompletedIsTrue" />
      </OutputClaimsTransformations>
      <IncludeTechnicalProfile ReferenceId="AAD-Common" />
      </TechnicalProfile>


      This has an OutputClaimsTransformation EnsureCompletedIsTrue.



      <ClaimsTransformation Id="EnsureCompletedIsTrue" TransformationMethod="AssertBooleanClaimIsEqualToValue">
      <InputClaims>
      <InputClaim ClaimTypeReferenceId="extension_Completed" TransformationClaimType="inputClaim" />
      </InputClaims>
      <InputParameters>
      <InputParameter Id="valueToCompareTo" DataType="boolean" Value="true" />
      </InputParameters>
      </ClaimsTransformation>


      So if extension_Completed is True it should throw the error message "Process complete".



      I have checked that the flag is true but I never see the error message?







      azure-ad-b2c






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 6 at 19:46









      nzpcmadnzpcmad

      28.5k2893144




      28.5k2893144






















          1 Answer
          1






          active

          oldest

          votes


















          0














          According to the doc, it assert the claims value is as expected, otherwise throw error. You are asserting it against a "true" but shouldn't it be against "false"?



          If the link has never been used, the claim value is false. The validation is done to assert that is false. Once it's being used, the claim value should be true (I believe you'd handle this somewhere). And if the user use the link agains, the claim value now is true, and the assertion would throw because it expects a false value.



          <ClaimsTransformation Id="EnsureCompletedIsTrue" TransformationMethod="AssertBooleanClaimIsEqualToValue">
          <InputClaims>
          <InputClaim ClaimTypeReferenceId="extension_Completed" TransformationClaimType="inputClaim" />
          </InputClaims>
          <InputParameters>
          <InputParameter Id="valueToCompareTo" DataType="boolean" Value="false" />
          </InputParameters>
          </ClaimsTransformation>





          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55031091%2fdisplaying-the-error-message-with-an-azure-ad-b2c-custom-policy-for-password-res%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            According to the doc, it assert the claims value is as expected, otherwise throw error. You are asserting it against a "true" but shouldn't it be against "false"?



            If the link has never been used, the claim value is false. The validation is done to assert that is false. Once it's being used, the claim value should be true (I believe you'd handle this somewhere). And if the user use the link agains, the claim value now is true, and the assertion would throw because it expects a false value.



            <ClaimsTransformation Id="EnsureCompletedIsTrue" TransformationMethod="AssertBooleanClaimIsEqualToValue">
            <InputClaims>
            <InputClaim ClaimTypeReferenceId="extension_Completed" TransformationClaimType="inputClaim" />
            </InputClaims>
            <InputParameters>
            <InputParameter Id="valueToCompareTo" DataType="boolean" Value="false" />
            </InputParameters>
            </ClaimsTransformation>





            share|improve this answer



























              0














              According to the doc, it assert the claims value is as expected, otherwise throw error. You are asserting it against a "true" but shouldn't it be against "false"?



              If the link has never been used, the claim value is false. The validation is done to assert that is false. Once it's being used, the claim value should be true (I believe you'd handle this somewhere). And if the user use the link agains, the claim value now is true, and the assertion would throw because it expects a false value.



              <ClaimsTransformation Id="EnsureCompletedIsTrue" TransformationMethod="AssertBooleanClaimIsEqualToValue">
              <InputClaims>
              <InputClaim ClaimTypeReferenceId="extension_Completed" TransformationClaimType="inputClaim" />
              </InputClaims>
              <InputParameters>
              <InputParameter Id="valueToCompareTo" DataType="boolean" Value="false" />
              </InputParameters>
              </ClaimsTransformation>





              share|improve this answer

























                0












                0








                0







                According to the doc, it assert the claims value is as expected, otherwise throw error. You are asserting it against a "true" but shouldn't it be against "false"?



                If the link has never been used, the claim value is false. The validation is done to assert that is false. Once it's being used, the claim value should be true (I believe you'd handle this somewhere). And if the user use the link agains, the claim value now is true, and the assertion would throw because it expects a false value.



                <ClaimsTransformation Id="EnsureCompletedIsTrue" TransformationMethod="AssertBooleanClaimIsEqualToValue">
                <InputClaims>
                <InputClaim ClaimTypeReferenceId="extension_Completed" TransformationClaimType="inputClaim" />
                </InputClaims>
                <InputParameters>
                <InputParameter Id="valueToCompareTo" DataType="boolean" Value="false" />
                </InputParameters>
                </ClaimsTransformation>





                share|improve this answer













                According to the doc, it assert the claims value is as expected, otherwise throw error. You are asserting it against a "true" but shouldn't it be against "false"?



                If the link has never been used, the claim value is false. The validation is done to assert that is false. Once it's being used, the claim value should be true (I believe you'd handle this somewhere). And if the user use the link agains, the claim value now is true, and the assertion would throw because it expects a false value.



                <ClaimsTransformation Id="EnsureCompletedIsTrue" TransformationMethod="AssertBooleanClaimIsEqualToValue">
                <InputClaims>
                <InputClaim ClaimTypeReferenceId="extension_Completed" TransformationClaimType="inputClaim" />
                </InputClaims>
                <InputParameters>
                <InputParameter Id="valueToCompareTo" DataType="boolean" Value="false" />
                </InputParameters>
                </ClaimsTransformation>






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 7 at 6:52









                Izzul HaziqIzzul Haziq

                285




                285





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55031091%2fdisplaying-the-error-message-with-an-azure-ad-b2c-custom-policy-for-password-res%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

                    Алба-Юлія

                    Захаров Федір Захарович