Skip to content
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 a way for SPA to request Kinto to authorize request via httpOnly cookies #2334

Open
Natim opened this issue Nov 6, 2019 · 1 comment
Labels
enhancement stale For marking issues as stale. Labeled issues will be closed soon if label is not removed.

Comments

@Natim
Copy link
Member

Natim commented Nov 6, 2019

The OpenID flow redirects to a page with the auth_token.

As @magopian pointed out, it is a best practice to not store the token on the client side.

The experts told us instead to store it inside a httpOnly cookie that can be read only from the server side.

This means two things from a kinto perspective:

  • OpenID should redirect to kinto and kinto should store the token in a httpOnly cookie
  • Kinto should try to find the token in the cookie if not present in an Authorization header.
@Natim
Copy link
Member Author

Natim commented Nov 6, 2019

@alexcottner alexcottner added the stale For marking issues as stale. Labeled issues will be closed soon if label is not removed. label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement stale For marking issues as stale. Labeled issues will be closed soon if label is not removed.
Projects
None yet
Development

No branches or pull requests

2 participants