-
Notifications
You must be signed in to change notification settings - Fork 9
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
Investigate switching to frontend auth with PKCE #2572
Comments
PKCE is already supported by the mock auth server that I've gotten working: We'll be a step closer to using it when #2716 is merged |
While researching Azure B2C I found that Microsoft also recommends authorization code flow with PKCE for SPAs. |
Ok, somehow I didn't get this into an issue when I was doing research last week, but here are the libraries that might be helpful:
|
|
@patcon Do you know react-oidc-context? Might be also a good candidate for your list above... |
👋 bjerkio/oidc-react is maintained, albeit rather slow. We're working on bumping to v2, which should give you enough support going forward. It does support PKCE :) PS: I'm a maintainer of |
I would love to have a list in the readme of our package! 🎉 it would be awesome if you to open a pull request! We can maintain it, and probably add more details on the differences! So it makes it easier for people! Btw, have you evaluated using cookie-based authentication? For example with ORY Kratos? |
Security consultants have expressed concern that our current auth flow passes authentication tokens in the URI. This makes them vulnerable since they more visible, for example, in the browser history. We mitigate this by using very short-lived tokens. This way the window for attack is fairly limited. It seems that the accepted best solution for SPAs is to use the authorization grant flow with the PKCE extension.
Open questions: Is implementing this form of auth a large improvement over our current "backend helper" approach? Is it worth the large refactor?
The team has expressed a desire to leverage a library for this functionality. Patrick likes Auth0, Tristan found #2376 (comment) and Peter found #2376 (comment).
The text was updated successfully, but these errors were encountered: