Thank you for your detailed post!
To fully ensure I understand your issue correctly I'll summarize it below:
- You currently have a sign up, sign in, and password reset policy (local account only).
- The policies return an access token that you use to authorize API requests within your SPA application.
- In addition to these 3 policies, you have a username/email and MFA phone number change policy.
Referencing the MFA phone number change policy - after a user changes their MFA number, you want to post the updated number to your customer database using a REStful technical profile in the user journey (orchestration step). To hopefully help point you in the right direction or resolve your issue, I'll share my findings below.
Findings:
To post the new MFA phone number to your customer database using a RESTful technical profile in the user journey, you should be able to do this by adding the orchestration step within your custom policy.
For example:
- Within your MFA phone number change custom policy, add an orchestration step after the user changes their MFA phone number.
- Within the orchestration step, you can leverage the ClaimsExchange attribute by adding it to your technical profile to call your RESTful API. For more info.
- Specify the necessary Metadata Items within the ClaimsExchange technical profile. For more info - Send a JSON payload.
Links:
- OrchestrationSteps
- Claims provider selection - ClaimsExchange
- Calling a RESTful service
- RESTful technical profile - Send a JSON payload
I hope this helps!
If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.