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

How to use verify_jwt_token with token in httpOnly cookie? #77

Open
Bouni opened this issue Nov 27, 2020 · 1 comment
Open

How to use verify_jwt_token with token in httpOnly cookie? #77

Bouni opened this issue Nov 27, 2020 · 1 comment

Comments

@Bouni
Copy link

Bouni commented Nov 27, 2020

Hi,

I want to use httpOnly cookies for storing the token, which works already as expected, but the verify_jwt_token view expects the token being sent as payload in the body!?

Is there a way to verify a token passed as httpOnly cookie?

@robrap
Copy link

robrap commented Feb 18, 2021

Not sure if this will help you or not. We decided to split our token across two cookies to make the signature HttpOnly. You can read more about our decision here: https://github.com/edx/edx-platform/blob/master/openedx/core/djangoapps/oauth_dispatch/docs/decisions/0009-jwt-in-session-cookie.rst. We used Django middleware to take our two cookies and create the expected cookie on the backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants