AD B2C Guest User for the application (Local Account Type)
I have requirement of 'Guest User' in my application. If user clicks on 'Continue as Guest' the user should be able to enter in the application by just verifying the email-id based on OTP sent on email.
And then submit some case in the application which will send an email to do a signup on the application to track the progress of there case.
I tried to achieved this requirement in two parts :
Part 1 - Create a User in Active Directory with passwordless-custom-policy reference and redirect to my application.
Part 2 - For the sigup after case submission, I am confused on how to do this.
One approach is to mark 'RaiseErrorIfClaimsPrincipalAlreadyExists' as false during the signup so that account will get overridden when user does a signup with firstname, givenName and Password fields.
But this will be security breach - as I want to make this 'RaiseErrorIfClaimsPrincipalAlreadyExists' as false only when my custom user attribute 'isGuestAccount' = true.
Can anyone help in this please?