| OLD | NEW |
| 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 """Endpoints version of is_member API.""" | 5 """Endpoints version of is_member API.""" |
| 6 | 6 |
| 7 import logging | 7 import logging |
| 8 import re | 8 import re |
| 9 | 9 |
| 10 import endpoints | 10 import endpoints |
| 11 from protorpc import messages | 11 from protorpc import messages |
| 12 from protorpc import remote | 12 from protorpc import remote |
| 13 | 13 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 client_id=request.client_id or conf.client_id, | 74 client_id=request.client_id or conf.client_id, |
| 75 client_secret=request.client_secret or conf.client_secret, | 75 client_secret=request.client_secret or conf.client_secret, |
| 76 redirect_uri=request.redirect_uri or conf.redirect_uri) | 76 redirect_uri=request.redirect_uri or conf.redirect_uri) |
| 77 conf.put() | 77 conf.put() |
| 78 return conf | 78 return conf |
| 79 conf = txn() | 79 conf = txn() |
| 80 return OpenIDConfig( | 80 return OpenIDConfig( |
| 81 client_id=conf.client_id, | 81 client_id=conf.client_id, |
| 82 client_secret='*****' if conf.client_secret else '', | 82 client_secret='*****' if conf.client_secret else '', |
| 83 redirect_uri=conf.redirect_uri) | 83 redirect_uri=conf.redirect_uri) |
| OLD | NEW |