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

Side by Side Diff: appengine/auth_service/delegation.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, 6 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
« no previous file with comments | « appengine/auth_service/config_test.py ('k') | appengine/auth_service/delegation_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 """API handler to mint delegation tokens.""" 5 """API handler to mint delegation tokens."""
6 6
7 import logging 7 import logging
8 import webapp2 8 import webapp2
9 9
10 from components import auth 10 from components import auth
11 from components import utils 11 from components import utils
12 12
13 from components.auth import delegation 13 from components.auth import delegation
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 def get_default_allowed_services(user_id): 271 def get_default_allowed_services(user_id):
272 """Returns the list of services defined by a first matching rule. 272 """Returns the list of services defined by a first matching rule.
273 273
274 Args: 274 Args:
275 user_id: identity string of a current caller. 275 user_id: identity string of a current caller.
276 """ 276 """
277 rule = get_delegation_rule(user_id, ['*']) 277 rule = get_delegation_rule(user_id, ['*'])
278 return rule.target_service 278 return rule.target_service
279 279
OLDNEW
« no previous file with comments | « appengine/auth_service/config_test.py ('k') | appengine/auth_service/delegation_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698