Blazor "Onboarding" Sample #416
hugh-maaskant
started this conversation in
Show and tell
Replies: 1 comment
-
|
Thanks Hugh! We've linked to your sample in the docs now at https://docs.duendesoftware.com/bff/samples/#new-user-onboarding-with-blazor-auto-rendering |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
FYI: I created an extension to the BFF for Blazor Auto Rendering sample that adds the following two capabilities:
After the user has been signed in by the IDP (using a temporary cookie), it intercepts the login flow using the OIDC handler's event callbacks. It then checks if this is a new user, and if so shows the onboarding Blazor page with a form to be filled out. If the user is known, and also after the onboarding form submission, the user gets signed in to a new cookie, the Application cookie. This allows adding, changing, or removing any Claims from the IDP with Claims for the Application, including the value of the user Id if desired.
To help me remember what I did three month from now, I have extensively commented the code. Next to the README.md, there is a design document going into some detail about the issues encountered and the choices made.
You can find the code on GitHub; furthermore it is referenced from the Duende samples documentation. Just like the Duende samples, it is MIT licensed.
Comments are welcome :-).
Hugh Maaskant
Beta Was this translation helpful? Give feedback.
All reactions