-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically refresh token #116
Comments
@hrauch Great. Thanks so much for this. I had the same issue w/Google: I was just starting w/flask, so did not For other's Google-Ability, here's my error:
|
jouellnyc
added a commit
to jouellnyc/DockerStocksWeb
that referenced
this issue
May 14, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using keycloak and want to refresh my token after timeout (1 min).
I've found this solution - I'm using two session variables 'user' and 'oidc_id_token':
@app.before_request
def before_request_func():
if 'user' in session:
if not g.oidc_id_token and 'oidc_id_token' in session:
g.oidc_id_token = session["oidc_id_token"]
else:
session['oidc_id_token'] = g.oidc_id_token
On the other hand: If I comment out line 376 in function _set_cookie_id_token(self, id_token), I got the same result???
Hans
The text was updated successfully, but these errors were encountered: