Persist OIDC logins on HTTP refresh (#105)
This relates to #70, where refreshing the webpage causes the user to need to login again, due to homeassistant not storing the user's session token `hassTokens`.
This commit is contained in:
committed by
Christiaan Goossens
parent
7a31b10d0e
commit
b1519b865d
@@ -41,7 +41,7 @@ class OIDCFinishView(HomeAssistantView):
|
|||||||
|
|
||||||
# Return redirect to the main page for sign in with a cookie
|
# Return redirect to the main page for sign in with a cookie
|
||||||
return web.HTTPFound(
|
return web.HTTPFound(
|
||||||
location="/",
|
location="/?storeToken=true",
|
||||||
headers={
|
headers={
|
||||||
# Set a cookie to enable autologin on only the specific path used
|
# Set a cookie to enable autologin on only the specific path used
|
||||||
# for the POST request, with all strict parameters set
|
# for the POST request, with all strict parameters set
|
||||||
|
|||||||
Reference in New Issue
Block a user