Build the oauth redirect url with the host from the request

(imported from commit 972fed686b556bc8845cf7ae5bca555dc9cbeb13)
This commit is contained in:
Jason Michalski 2015-02-05 23:14:04 -05:00
parent 7e9c121ad3
commit 35d22949ed
1 changed files with 1 additions and 1 deletions

View File

@ -721,7 +721,7 @@ def start_google_oauth2(request):
'client_id': settings.GOOGLE_OAUTH2_CLIENT_ID,
'redirect_uri': ''.join((
settings.EXTERNAL_URI_SCHEME,
settings.EXTERNAL_HOST,
request.get_host(),
reverse('zerver.views.finish_google_oauth2'),
)),
'scope': 'profile email',