Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSO using auth0 and Umbraco members #5

Open
shearer3000 opened this issue Aug 2, 2023 · 1 comment
Open

SSO using auth0 and Umbraco members #5

shearer3000 opened this issue Aug 2, 2023 · 1 comment

Comments

@shearer3000
Copy link

shearer3000 commented Aug 2, 2023

hi Jeroen

firstly, thanks for this sample project.

does this example require membership records already exist in umbraco, or can it work exclusively with auth0 as a SSO provider?

I was curious why the extra claims you set up in the OnTokenValidated event aren't in the OnAutoLinking callback instead as that seems like the more logical place according to the Umbraco docs (however, i can't get that event to fire, not sure if that's an Umbraco 10 bug or not)

thanks in advance for any feedback/insight you might be able to provide here
Andrew

@jbreuer
Copy link
Owner

jbreuer commented Aug 18, 2023

Hi Andrew,

The default example will create a member in Umbraco the first time you login. That's when the OnAutoLinking is fired. The next time you login with the same member that event won't be fired. That's why I use the OnTokenValidated because that event is hit on each login.

I wrote a blog where a member doesn't need to exist in Umbraco, but it's experimental: https://www.jeroenbreuer.nl/blog/virtual-members-in-umbraco/

Jeroen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants