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

Issue 2951553002: Extend LUCI_CONTEXT["local_auth"] protocol to understand accounts. (Closed)

Created:
3 years, 6 months ago by Vadim Sh.
Modified:
3 years, 6 months ago
Reviewers:
iannucci
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

Extend LUCI_CONTEXT["local_auth"] protocol to understand accounts. The client side of the protocol ("common/auth/internal/luci_ctx") is still backward compatible with old version of the protocol. This will be removed once Swarming is updated to provide 'accounts' and 'default_account_id'. R=iannucci@chromium.org BUG=730878 Review-Url: https://codereview.chromium.org/2951553002 Committed: https://github.com/luci/luci-go/commit/b782c74dd7d045d41ae85e6a90680efa61d24cfa

Patch Set 1 #

Total comments: 11

Patch Set 2 : nits #

Patch Set 3 : use errors.new #

Patch Set 4 : few more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -70 lines) Patch
M client/authcli/authcli.go View 1 chunk +11 lines, -1 line 0 comments Download
M common/auth/auth.go View 1 chunk +14 lines, -6 lines 0 comments Download
M common/auth/internal/luci_ctx.go View 2 chunks +10 lines, -2 lines 0 comments Download
M common/auth/internal/luci_ctx_test.go View 3 chunks +15 lines, -4 lines 0 comments Download
M common/auth/localauth/ctx_test.go View 2 chunks +11 lines, -8 lines 0 comments Download
M common/auth/localauth/rpcs/getoauthtoken.go View 1 2 1 chunk +11 lines, -6 lines 0 comments Download
M common/auth/localauth/server.go View 1 8 chunks +52 lines, -17 lines 0 comments Download
M common/auth/localauth/server_test.go View 1 2 3 3 chunks +52 lines, -23 lines 0 comments Download
M lucictx/local_auth.go View 1 chunk +27 lines, -0 lines 0 comments Download
M lucictx/types_test.go View 1 1 chunk +13 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
Vadim Sh.
PTAL https://codereview.chromium.org/2951553002/diff/1/client/authcli/authcli.go File client/authcli/authcli.go (right): https://codereview.chromium.org/2951553002/diff/1/client/authcli/authcli.go#newcode506 client/authcli/authcli.go:506: // We currently always setup a context with ...
3 years, 6 months ago (2017-06-19 20:16:29 UTC) #1
iannucci
lgtm, that wasn't as ugly as I was expecting (assuming we complete this transition and ...
3 years, 6 months ago (2017-06-19 20:31:29 UTC) #6
Vadim Sh.
https://codereview.chromium.org/2951553002/diff/1/client/authcli/authcli.go File client/authcli/authcli.go (right): https://codereview.chromium.org/2951553002/diff/1/client/authcli/authcli.go#newcode514 client/authcli/authcli.go:514: DefaultAccountID: "authutil", On 2017/06/19 20:31:28, iannucci wrote: > should ...
3 years, 6 months ago (2017-06-19 20:41:36 UTC) #7
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/2951553002/60001
3 years, 6 months ago (2017-06-19 20:47:12 UTC) #10
commit-bot: I haz the power
3 years, 6 months ago (2017-06-19 21:01:29 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://github.com/luci/luci-go/commit/b782c74dd7d045d41ae85e6a90680efa61d24cfa

Powered by Google App Engine
This is Rietveld 408576698