I have a blazor wasm application that uses Azure B2C for account login/creation. This works well for my generic users. I have a smaller set of users that are a different type from my regular users and I need a way to know when this type of user registers an account. I need to know from a claim in the token when this type of user registers and an id for these users the custom fields I am trying to use are IsSchool (bool) and SchoolCode (int).
Things I don’t want to do.
-
I don’t want to present these extra fields as inputs to all users registering in the system because these users are less than 1% of the users in the system and these extra fields have no meaning for them.
-
I don’t want to make any custom Graph API calls!
Ideas?
Can I have a custom registration URL with the IsSchool and SchoolCode values in it? If so, how do I map these fields to my custom user attributes in the token?
Can I setup a different user flow that includes these fields for these users? If so, how do I incorporate 2 different user flows into my application?
Can I use some method inside of my component blazor code to accomplish this?
Any guidance would be greatly appreciated.
I have been researching any method to accomplish this and haven’t been able to find one that doesn’t require writing an entire feature inside of my app to manage users with extensive graph api integration.