question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to conditionally execute conditional OrchestrationStep

See original GitHub issue

I am trying to introduce new Orchestration Step based on the value of my custom attribute. My requirement is I want to execute the a orchestration step only if the value of myattribute(boolean attribute) is set to true. The value of myattribute is either set to true or false. I am doing something like this. <OrchestrationStep Order="3" Type="ClaimsExchange"> <ClaimsExchanges> <ClaimsExchange Id="AADUserReadWithObjectId" TechnicalProfileReferenceId="AAD-UserReadUsingObjectId" /> </ClaimsExchanges> </OrchestrationStep> <OrchestrationStep Order="4" Type="ClaimsExchange"> <Preconditions> <Precondition Type="ClaimEquals" ExecuteActionsIf="false"> <Value>mobile</Value> <Value>extension_myattributee</Value> <Action>SkipThisOrchestrationStep</Action> </Precondition> </Preconditions> <ClaimsExchanges> <ClaimsExchange Id="NewCredentials1" TechnicalProfileReferenceId="LocalAccountWritePasswordChangeUsingObjectId" /> </ClaimsExchanges> </OrchestrationStep>

But this step is not skipped irrespective of the value of myattribute. I have added the myattribute as part of the OutPutClaims of AAD-UserReadUsingObjectId. I am able see the value of extension_myattribute in the C#.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
chrispadgettlivecomcommented, Aug 21, 2018

The possible values for a boolean claim are “True” and “False” (i.e. the string representation of true and false).

2reactions
LearnToCodeKMcommented, Aug 21, 2018

Changing my custom attribute to string worked. Changing just the claim type did not help(it shows up error) , so added a new string custom attribute to and used it. Thanks for all the help and I really mean it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UserJourneys
Orchestration steps can be conditionally executed based on preconditions defined in the orchestration step element.
Read more >
Orchestration Steps Precondition works on OR logic not on ...
I have an Orchestration Step which works on some precondition, even if one of the precondition is satisfied the orchestration step gets skipped ......
Read more >
"Hello World and Then Some" with Azure Active Directory ...
You can conditionally enable or disable the execution of a Technical Profile by adding an EnabledForUserJourneys element to the Technical Profile declaration.
Read more >
Orchestration Steps
Steps are grouped in stages and can be run sequentially or concurrently. Interactive steps assign the completion of an active screen flow to...
Read more >
Conditional Access with Azure AD B2C - YouTube
Your browser can't play this video. Learn more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found