-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add examples for non-oidc-provider providers mentioned in README #153
Comments
Ah whoops, I think I was confusing GitHub's support for OIDC from within Actions for its own API auth, which seems to be OAuth2-only. I'll remove GitHub from that list. If I was mistaken about any other providers in this list supporting OIDC, I'd be happy to remove those as well.
This is fair, and I agree it's worth adding an example that shows how to set the endpoints manually. It's straightforward to do and mirrors how the Note that both this crate's and |
It turns out that GitHub and Discord only implement plain OAuth2 for sign-in. Apple implements a non-spec-compliant subset of OIDC that isn't compatible with this library (i.e., it issues ID tokens but doesn't accept the mandatory `openid` scope). Relates to #153.
I updated the README for accuracy in fcada17. Thanks for pointing out those issues! I was too hasty in adding those a few weeks ago. |
The README for this repo has this line as the very first you read:
There's only an example in the docs for Google which uses Google's discover endpoint (/.well-known/openid-configuration).
The README clearly mentions GitHub, Discord and 'many other providers', but GitHub and Discord (the ones that I've tested, but I would imagine a lot more) doesn't have a discover endpoint.
That is in itself fine, because you can just work around the discover-endpoint with
CoreProviderMetadata
. You can't useCoreProviderMetadata::new()
for Discord though, since they also don't have a JWKS-endpoint (haven't checked GitHub). And that's where I'm currently stuck, but will still work on it though.So I'm kindly asking for an example of how to implement an OpenID Connect client for Discord/GitHub/'many other providers' that doesn't have the discover endpoint. I've already implemented authentication for Discord, GitHub, Facebook and others with the
OAuth2
crate, so I'm not that new to this, but I still feel like I'm missing something in this crate...Kind regards😊
The text was updated successfully, but these errors were encountered: