Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: appengine/components/components/auth/openid.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Fixed third parties Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The LUCI Authors. All rights reserved. 1 # Copyright 2015 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """Functions related to OpenID Connect protocol. 5 """Functions related to OpenID Connect protocol.
6 6
7 At least Google's implementation. 7 At least Google's implementation.
8 8
9 See https://developers.google.com/identity/protocols/OpenIDConnect. 9 See https://developers.google.com/identity/protocols/OpenIDConnect.
10 """ 10 """
11 11
12 import collections 12 import collections
13 import datetime 13 import datetime
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 """Returns URL to a logout page that redirects to dest_url on logout. 591 """Returns URL to a logout page that redirects to dest_url on logout.
592 592
593 Args: 593 Args:
594 request: webapp2.Request object with the current request. 594 request: webapp2.Request object with the current request.
595 dest_url: URL to redirect to after logout. 595 dest_url: URL to redirect to after logout.
596 """ 596 """
597 assert request.host_url[-1] != '/', request.host_url 597 assert request.host_url[-1] != '/', request.host_url
598 dest_url = normalize_dest_url(request.host_url, dest_url) 598 dest_url = normalize_dest_url(request.host_url, dest_url)
599 return '%s/auth/openid/logout?r=%s' % ( 599 return '%s/auth/openid/logout?r=%s' % (
600 request.host_url, urllib.quote_plus(dest_url)) 600 request.host_url, urllib.quote_plus(dest_url))
OLDNEW
« no previous file with comments | « appengine/components/components/auth/model_test.py ('k') | appengine/components/components/auth/openid_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698