-
Notifications
You must be signed in to change notification settings - Fork 135
feat: add azure b2c oauth provider #362
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
Conversation
What confuses me about this implementation is that it assumes an |
Hi! I'm not quite sure what you mean. Are you having problems with this provider in your project? Some resources: |
What if I would only use it for authn? Am I forced to great a scope that exposes an API? I'm also readying that the access token from the /token endpoint can't be used (or is a deprecated) way of authorizing the Microsoft Graph API. |
I based this implementation on the existing oauth providers, which all seem to use a userinfo endpoint.
Do you have a link to this? I'd be happy to update the implementation if it's not correct as per microsoft standards. I believe B2C is on the path to deprecation regardless and Microsoft are trying to push people to use Entra External Identity instead |
This response here: Appears to point to the access_token only being used for I already have the user info with the |
Yes that seems to make sense, it looks like the graph endpoint only works if your B2C has specific scopes setup for it. I do think these providers should support not using the user_info endpoint if an id_token is provided, I can look into making a PR for this to follow up the changes from this one unless you want to take a crack at it |
I can create a PR if you're okay with a |
https://nuxtoidc.cloud/configuration offers are |
Adds support for Azure B2C oauth.
B2C Requires PKCE and recommends state so these have also been added.
I believe there are discussions relating to PKCE in #109
There may be overlapping and it might be best for me to wait until PKCE is sorted across the entire project before adding b2c.