Skip to content

Commit e58661a

Browse files
author
Jon Wayne Parrott
committed
Merge pull request GoogleCloudPlatform#45 from GoogleCloudPlatform/logout
Fix Logout Bug
2 parents 721dad3 + f8ad7ea commit e58661a

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

4-auth/bookshelf/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def create_app(config, debug=False, testing=False, config_overrides=None):
5858
def logout():
5959
# Delete the user's profile and the credentials stored by oauth2.
6060
del session['profile']
61+
session.modified = True
6162
oauth2.storage.delete()
6263
return redirect(request.referrer or '/')
6364
# [END logout]

5-logging/bookshelf/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def create_app(config, debug=False, testing=False, config_overrides=None):
5555
def logout():
5656
# Delete the user's profile and the credentials stored by oauth2.
5757
del session['profile']
58+
session.modified = True
5859
oauth2.storage.delete()
5960
return redirect(request.referrer or '/')
6061

6-pubsub/bookshelf/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def create_app(config, debug=False, testing=False, config_overrides=None):
5353
def logout():
5454
# Delete the user's profile and the credentials stored by oauth2.
5555
del session['profile']
56+
session.modified = True
5657
oauth2.storage.delete()
5758
return redirect(request.referrer or '/')
5859

7-gce/bookshelf/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def health_check():
6161
def logout():
6262
# Delete the user's profile and the credentials stored by oauth2.
6363
del session['profile']
64+
session.modified = True
6465
oauth2.storage.delete()
6566
return redirect(request.referrer or '/')
6667

optional-container-engine/bookshelf/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def health_check():
6161
def logout():
6262
# Delete the user's profile and the credentials stored by oauth2.
6363
del session['profile']
64+
session.modified = True
6465
oauth2.storage.delete()
6566
return redirect(request.referrer or '/')
6667

0 commit comments

Comments
 (0)