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

Issue 14329014: Identity API: Add token cache and identity.invalidateAuthToken. (Closed)

Created:
7 years, 8 months ago by Michael Courage
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, MAD, Ilya Sherman, jar (doing other things), chromium-apps-reviews_chromium.org, Pete Williamson
Visibility:
Public.

Description

Identity API: Add token cache and identity.invalidateAuthToken. Identity.getAuthToken caches access tokens from GAIA. Tokens expirations are handled automatically, but if an access token goes bad for some other reason, the application can call identity.invalidateAuthToken to remove a bad token from the cache. BUG=228908 (step #1 of the bug description) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195604

Patch Set 1 #

Patch Set 2 : fix invalidation crash and stale tokens for signed out users #

Total comments: 2

Patch Set 3 : rename invalidateAuthToken -> removeCachedAuthToken #

Patch Set 4 : rebase #

Patch Set 5 : the rebasing will continue until morale improves #

Patch Set 6 : rounding third rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+535 lines, -51 lines) Patch
M chrome/browser/extensions/api/identity/identity_api.h View 1 2 3 4 5 6 chunks +64 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.cc View 1 2 10 chunks +191 lines, -27 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_apitest.cc View 1 2 13 chunks +230 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_function_histogram_value.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/experimental_identity.idl View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M google_apis/gaia/oauth2_mint_token_flow.h View 2 chunks +5 lines, -3 lines 0 comments Download
M google_apis/gaia/oauth2_mint_token_flow.cc View 5 chunks +15 lines, -6 lines 0 comments Download
M google_apis/gaia/oauth2_mint_token_flow_unittest.cc View 4 chunks +12 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Michael Courage
This CL adds an in-memory token cache for access tokens retrieved by the Identity API, ...
7 years, 8 months ago (2013-04-18 03:26:23 UTC) #1
Mark P
histograms.xml lgtm
7 years, 8 months ago (2013-04-18 15:06:51 UTC) #2
Matt Perry
https://codereview.chromium.org/14329014/diff/6001/chrome/common/extensions/api/experimental_identity.idl File chrome/common/extensions/api/experimental_identity.idl (right): https://codereview.chromium.org/14329014/diff/6001/chrome/common/extensions/api/experimental_identity.idl#newcode5 chrome/common/extensions/api/experimental_identity.idl:5: namespace experimental.identity { I hadn't seen this before, but ...
7 years, 8 months ago (2013-04-18 17:46:36 UTC) #3
Michael Courage
https://codereview.chromium.org/14329014/diff/6001/chrome/common/extensions/api/experimental_identity.idl File chrome/common/extensions/api/experimental_identity.idl (right): https://codereview.chromium.org/14329014/diff/6001/chrome/common/extensions/api/experimental_identity.idl#newcode5 chrome/common/extensions/api/experimental_identity.idl:5: namespace experimental.identity { On 2013/04/18 17:46:37, Matt Perry wrote: ...
7 years, 8 months ago (2013-04-18 19:52:24 UTC) #4
Matt Perry
On 2013/04/18 19:52:24, Michael Courage wrote: > https://codereview.chromium.org/14329014/diff/6001/chrome/common/extensions/api/experimental_identity.idl > File chrome/common/extensions/api/experimental_identity.idl (right): > > https://codereview.chromium.org/14329014/diff/6001/chrome/common/extensions/api/experimental_identity.idl#newcode5 ...
7 years, 8 months ago (2013-04-18 20:09:46 UTC) #5
Dmitry Titov
I'd think naming-wise, "reportInvalidAuthToken()" would probably better describe what this API is doing. It doesn't ...
7 years, 8 months ago (2013-04-18 21:21:09 UTC) #6
Michael Courage
On 2013/04/18 21:21:09, Dmitry Titov wrote: > I'd think naming-wise, "reportInvalidAuthToken()" would probably better describe ...
7 years, 8 months ago (2013-04-19 19:49:29 UTC) #7
Dmitry Titov
lgtm we probably need some review for the API change... Just in case folks have ...
7 years, 8 months ago (2013-04-19 20:12:57 UTC) #8
zel
lgtm
7 years, 8 months ago (2013-04-19 23:04:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/courage@chromium.org/14329014/27001
7 years, 8 months ago (2013-04-19 23:20:38 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-19 23:52:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/courage@chromium.org/14329014/27001
7 years, 8 months ago (2013-04-20 00:55:40 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-20 02:18:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/courage@chromium.org/14329014/27001
7 years, 8 months ago (2013-04-20 19:43:31 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-20 19:52:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/courage@chromium.org/14329014/27001
7 years, 8 months ago (2013-04-22 11:30:12 UTC) #16
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-22 11:30:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/courage@chromium.org/14329014/16002
7 years, 8 months ago (2013-04-22 17:29:35 UTC) #18
commit-bot: I haz the power
7 years, 8 months ago (2013-04-22 21:28:34 UTC) #19
Message was sent while issue was closed.
Change committed as 195604

Powered by Google App Engine
This is Rietveld 408576698