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

Issue 2993763002: tokenserver: Extract rules check into a separate function. (Closed)

Created:
3 years, 4 months ago by Vadim Sh.
Modified:
3 years, 4 months ago
Reviewers:
smut
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

tokenserver: Extract rules check into a separate function. It will be reused by MintOAuthTokenViaGrant to recheck the rules when the grant token is exercised. Also start using it in InspectOAuthTokenGrant, to make this check more useful. R=smut@google.com BUG=731843 Review-Url: https://codereview.chromium.org/2993763002 Committed: https://github.com/luci/luci-go/commit/d009bb905fb8f3f9d23f477c91039b055c0cf857

Patch Set 1 #

Patch Set 2 : nits #

Patch Set 3 : more nits #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1515 lines, -1291 lines) Patch
M tokenserver/api/admin/v1/admin.proto View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M tokenserver/api/admin/v1/admin.pb.go View 1 2 4 chunks +70 lines, -44 lines 0 comments Download
M tokenserver/api/admin/v1/pb.discovery.go View 1 2 1 chunk +1205 lines, -1190 lines 0 comments Download
M tokenserver/appengine/impl/serviceaccounts/config.go View 3 chunks +58 lines, -0 lines 0 comments Download
M tokenserver/appengine/impl/serviceaccounts/config_test.go View 1 3 chunks +73 lines, -19 lines 0 comments Download
M tokenserver/appengine/impl/serviceaccounts/rpc_inspect_oauth_token_grant.go View 1 2 3 chunks +41 lines, -0 lines 1 comment Download
M tokenserver/appengine/impl/serviceaccounts/rpc_inspect_oauth_token_grant_test.go View 1 2 5 chunks +47 lines, -5 lines 0 comments Download
M tokenserver/appengine/impl/serviceaccounts/rpc_mint_oauth_token_grant.go View 2 chunks +9 lines, -32 lines 0 comments Download
M tokenserver/appengine/impl/services/admin/adminsrv/service.go View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
Vadim Sh.
https://codereview.chromium.org/2993763002/diff/40001/tokenserver/appengine/impl/serviceaccounts/rpc_inspect_oauth_token_grant.go File tokenserver/appengine/impl/serviceaccounts/rpc_inspect_oauth_token_grant.go (right): https://codereview.chromium.org/2993763002/diff/40001/tokenserver/appengine/impl/serviceaccounts/rpc_inspect_oauth_token_grant.go#newcode33 tokenserver/appengine/impl/serviceaccounts/rpc_inspect_oauth_token_grant.go:33: func (r *InspectOAuthTokenGrantRPC) InspectOAuthTokenGrant(c context.Context, req *admin.InspectOAuthTokenGrantRequest) (*admin.InspectOAuthTokenGrantResponse, error) ...
3 years, 4 months ago (2017-08-05 03:27:01 UTC) #1
smut
lgtm
3 years, 4 months ago (2017-08-07 21:13:45 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2993763002/40001
3 years, 4 months ago (2017-08-07 22:55:09 UTC) #4
commit-bot: I haz the power
3 years, 4 months ago (2017-08-07 22:59:30 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://github.com/luci/luci-go/commit/d009bb905fb8f3f9d23f477c91039b055c0cf857

Powered by Google App Engine
This is Rietveld 408576698