Manage user roles via OAuth and update user informations with every login #6554
Unanswered
agreiner007
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Not quite sure what you're asking |
Beta Was this translation helpful? Give feedback.
1 reply
-
When they log in via oauth, you get the full user right? Can you check that against the statamic user and update if needed? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, we are using OAuth to login via a custom provider to our statamic page.
We want a way to manage the roles of an user in statamic via our custom provider.
Currently we use this custom provider set up in statamic:
and we added this to register in the AppServiceProvider:
So what is the right way here to set the roles of an user?
Another thing we noticed was:
If the users information e.g. name changed at our custom providers end, how will the changes propagate to statamic?
This will be crucial if we manage user roles at our custom provider.
Is OAuth even the right workflow here?
Thanks for your answers 🙂
Beta Was this translation helpful? Give feedback.
All reactions