Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 792f8e7

Browse files
committedApr 12, 2017
Force consent for all from django
1 parent 3066a06 commit 792f8e7

File tree

1 file changed

+4
-1
lines changed
  • oauth2client/contrib/django_util

1 file changed

+4
-1
lines changed
 

‎oauth2client/contrib/django_util/views.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ def _make_flow(request, scopes, return_url=None):
6868
scope=scopes,
6969
state=state,
7070
redirect_uri=request.build_absolute_uri(
71-
urlresolvers.reverse("google_oauth:callback")))
71+
urlresolvers.reverse("google_oauth:callback")),
72+
prompt="consent",
73+
access_type="offline",
74+
)
7275

7376
flow_key = _FLOW_KEY.format(csrf_token)
7477
request.session[flow_key] = jsonpickle.encode(flow)

0 commit comments

Comments
 (0)
Please sign in to comment.