-
Notifications
You must be signed in to change notification settings - Fork 27
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 PKCE #58
Comments
So a while back (probably months or years?) I had actually started investigating PKCE and concluded that it was usually not relevant for servers using But in the context of the web client/server model As I understand things today, the recommendation is to use PKCE "everywhere" (for additional reasons) and I do think it's worth supporting. That said I don't actively maintain this library at present -- so I'd be happy to integrate a working implementation, or if it's small I might get around to it some time. One particular obstacle I remember, and one reason I didn't implement it before, was the requirement for some storage to associate the challenge to the code across requests. If that's doable with a secure Cookie that would probably be best -- otherwise, this will require some kind of persistent storage or cache and APIs to configure them. I considered in-memory but that's a no-go for multi-instance deployments - either the storage needs to be shared across all instances, or the traffic has to be pinned such that the same client always reaches the same instance. |
Yes, I agree to your thinking. Going for the secure cookie sounds reasonable to me as well. I have no experience with pinning the network traffic yet, but it sounds way more complicated and error prone than solving it with a cookie. I will give it a try this week. |
So, I found the possibility to disable PKCE challenge for After successfully logging into See the logs below:
I uploaded the rocket test application here. I described the setup for In addition to that, here is the result of
Any ideas what is going wrong here? EDIT: I also added the changes from #39 |
I think I would start from this error:
This is indicating that (I'm assuming) a request from the
|
I am trying to use this library in combination with
kanidm
, but it requires PKCE.Is support for PKCE planned in the near future? I would be happy to help implementing if desired.
Additional info: https://www.oauth.com/oauth2-servers/pkce/
The text was updated successfully, but these errors were encountered: