b2c: How to redirect back to app after account deletion?

fernanda.toledo 1 Reputation point
2022-09-07T14:28:29.217+00:00

Hello, I am using custom policies for my identity framework provider. The same way the login and sign up flows redirect back to my react native mobile app I would like to know how to add that step for account deletion policy, right now after the user goes through the flow it gets stucked in the browser, I'd like to get back to the app and remove the current session data.

Thank you.

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. James Hamil 27,221 Reputation points Microsoft Employee Moderator
    2022-09-08T22:36:13.883+00:00

    Hi @fernanda.toledo , have you seen this GitHub sample? Instead of directing to the "your request has been processed" page, you can change that to redirect back to the title/login screen by editing the orchestration steps:

    <!-- Sample: This step present the account has been deleted message -->  
            <OrchestrationStep Order="7" Type="ClaimsExchange">  
              <ClaimsExchanges>  
                <ClaimsExchange Id="SelfAsserted-AccountHasBeenDeleted" TechnicalProfileReferenceId="SelfAsserted-AccountHasBeenDeleted" />  
              </ClaimsExchanges>  
            </OrchestrationStep>  
    

    Please let me know if you need any help or if it doesn't work for you!

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you,
    James

    0 comments No comments

  2. fernanda.toledo 1 Reputation point
    2022-09-09T12:10:56.107+00:00

    Hello @James Hamil thank you for your answer,

    I'm using this exact same sample, except we removed the facebook step.

    This has been helpful, but we still don't understand how we can redirect it back to the app.
    do we have to define a new technical profile or a claims? Do you have an example of a custom policy that does a redirect?

    thank you


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.