-
-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Description
It seems that storing authentication tokens in HTTP-only cookies is the most secure way of attaching the token to requests. As far as I understand, even if the frontend and backend are served from separate domains, CORS rules can be implemented to allow the cookies.
So, I have a few questions surrounding the option of storing the auth token in an HTTP-only cookie on the server side via KNOX:
- What would be the suggested way to implement this? I've seen some small examples on stack-overflow but presumably the contributors/owner here would have the best advice. Would you override the LoginView or would you create a different authentication class (or both)?
- If such an implementation is viable and useful, would the repo owner accept a pull request to have this become an option for the package?
- Why is this not already a default/option in the package? I don't mean that in a snarky way, just that it seems widely enough in use that it could be, but perhaps there are specific concerns with the approach that have been discussed.
Metadata
Metadata
Assignees
Labels
No labels