Skip to content

Commit

Permalink
Depend on expiration of OIDC token to expire cookie
Browse files Browse the repository at this point in the history
Fixes: #47
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
  • Loading branch information
puiterwijk committed Nov 12, 2018
1 parent 95e89a7 commit fa236b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flask_oidc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
from oauth2client.client import flow_from_clientsecrets, OAuth2WebServerFlow,\
AccessTokenRefreshError, OAuth2Credentials
import httplib2
from itsdangerous import JSONWebSignatureSerializer, BadSignature, \
TimedJSONWebSignatureSerializer, SignatureExpired
from itsdangerous import JSONWebSignatureSerializer, BadSignature

__all__ = ['OpenIDConnect', 'MemoryCredentials']

Expand Down Expand Up @@ -180,7 +179,7 @@ def init_app(self, app):
# create signers using the Flask secret key
self.extra_data_serializer = JSONWebSignatureSerializer(
app.config['SECRET_KEY'], salt='flask-oidc-extra-data')
self.cookie_serializer = TimedJSONWebSignatureSerializer(
self.cookie_serializer = JSONWebSignatureSerializer(
app.config['SECRET_KEY'], salt='flask-oidc-cookie')

try:
Expand Down

0 comments on commit fa236b8

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy