Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
7d10daca
"docs/vscode:/vscode.git/clone" did not exist on "1e98723e1286e1b1c1e906e3e9e9ce1b5727d9a6"
Commit
7d10daca
authored
Jun 28, 2024
by
Sergey Mihaylin
Browse files
Fix: set jwt_token to cookie (instead of token from OIDC)
parent
57c33057
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/main.py
backend/main.py
+1
-1
No files found.
backend/main.py
View file @
7d10daca
...
...
@@ -1983,7 +1983,7 @@ async def oauth_callback(provider: str, request: Request, response: Response):
# Set the cookie token
response
.
set_cookie
(
key
=
"token"
,
value
=
token
,
value
=
jwt_
token
,
httponly
=
True
,
# Ensures the cookie is not accessible via JavaScript
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment