Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.8k
Using a Cookie (with HTTPOnly flag) for authentication instead of plain Tokens#1564
-
First Check
Commit to Help
Example CodeDescriptionI'm thinking about changing the authentication flow: use a cookie (with the httponly=True option) for authentication instead of sending the token in plain text.HTTP-only cookiescan't be accessed by JavaScript, making them resistant to cross-site scripting (XSS) attacks. I believe this is a more secure approach, and I'm happy to implement the change, but since it would require modifying multiple files I wanted to discuss it first. I already have a POC version running locally. I copied the main backend code changes above. Operating SystemLinux Operating System DetailsUbuntu Python VersionPython 3.10.12 Additional ContextNo response |
BetaWas this translation helpful?Give feedback.
All reactions
There is already an issue:#189
And, in the comments to your PR it's discussed thatthis approach will not work in Swagger UI..
Replies: 2 comments
-
There is already an issue:#189 And, in the comments to your PR it's discussed thatthis approach will not work in Swagger UI.. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Storing |
BetaWas this translation helpful?Give feedback.