Using a Cookie (with HTTPOnly flag) for authentication instead of plain Tokens #1564
-
First Check
Commit to Help
Example Code
DescriptionI'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 cookies can'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 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is already an issue: #189 And, in the comments to your PR it's discussed that this approach will not work in Swagger UI.. |
Beta Was this translation helpful? Give feedback.
There is already an issue: #189
And, in the comments to your PR it's discussed that this approach will not work in Swagger UI..