-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
Support for plain code_challenge_method #657
Comments
Are you sure lepture/authlib doesn't support it? authlib/authlib/oauth2/rfc7636/challenge.py Lines 52 to 55 in 0ad753c
authlib/docs/client/oauth2.rst Lines 115 to 125 in 0ad753c
Section 4.3 of RFC 7636 defines both |
Upon a closer inspection of the source code, authlib seems to provide an implementation for authlib/authlib/oauth2/client.py Line 34 in 11f13e4
authlib/authlib/oauth2/client.py Lines 153 to 155 in 11f13e4
|
Should this issue be closed then? |
@codespearhead The client itself only supports S256. We need to add support for |
I'm dealing with an Authorization Server that requires PKCE, but only support
plain
challenge method. For this reason, out-of-the-box RFC7636 support does not do the trick for me, since it only handlesS256
PKCE challenge. Actually, I think this issue disqualifies authlib from the pool of dependencies I could use in my project entirely. If there's a workaround I could use to leverage authlib as an OAuth2 Client in FastAPI-based project, I'm more than happy to hear about it.That being said, I volunteer to provide the support for
plain
challenge. The reason I'm submitting this issue for is the fact that according to RFC7636, server-side support ofS256
is Mandatory To Implement. Usingplain
overS256
challenge method severely hinders the security benefits gained from supplementing the authorization flow with PKCE. If authlib maintainers want their project to follow the specifications in the most accurate manner and not introduce recommended against features, then I don't want to get in anyone's way.I'd be glad to hear your opinion on that. Thank you for your hard work!
The text was updated successfully, but these errors were encountered: