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

Issue 9549013: Add code to mint OAuth tokens from login-scoped OAuth token. (Closed)

Created:
8 years, 9 months ago by Munjal (Google)
Modified:
8 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Andrew T Wilson (Slow)
Visibility:
Public.

Description

Add code to mint OAuth tokens from login-scoped OAuth token. - Add a fetcher class, OAuth2TokenMintFetcher, to abstract OAuth2 token mint process. - Add tests. The work to use this in AppNotifyChannlesetup will be done in upcoming patch. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=124486

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+505 lines, -0 lines) Patch
M chrome/chrome_common.gypi View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/net/gaia/gaia_urls.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/net/gaia/gaia_urls.cc View 3 chunks +7 lines, -0 lines 0 comments Download
A chrome/common/net/gaia/oauth2_mint_token_consumer.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/common/net/gaia/oauth2_mint_token_fetcher.h View 1 1 chunk +105 lines, -0 lines 0 comments Download
A chrome/common/net/gaia/oauth2_mint_token_fetcher.cc View 1 1 chunk +189 lines, -0 lines 0 comments Download
A chrome/common/net/gaia/oauth2_mint_token_fetcher_unittest.cc View 1 1 chunk +175 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Munjal (Google)
8 years, 9 months ago (2012-03-01 00:05:16 UTC) #1
Munjal (Google)
8 years, 9 months ago (2012-03-01 00:06:00 UTC) #2
asargent_no_longer_on_chrome
lgtm https://chromiumcodereview.appspot.com/9549013/diff/1/chrome/common/net/gaia/oauth2_token_mint_consumer.h File chrome/common/net/gaia/oauth2_token_mint_consumer.h (right): https://chromiumcodereview.appspot.com/9549013/diff/1/chrome/common/net/gaia/oauth2_token_mint_consumer.h#newcode1 chrome/common/net/gaia/oauth2_token_mint_consumer.h:1: // Copyright (c) 2011 The Chromium Authors. All ...
8 years, 9 months ago (2012-03-01 00:53:36 UTC) #3
Munjal (Google)
https://chromiumcodereview.appspot.com/9549013/diff/1/chrome/common/net/gaia/oauth2_token_mint_consumer.h File chrome/common/net/gaia/oauth2_token_mint_consumer.h (right): https://chromiumcodereview.appspot.com/9549013/diff/1/chrome/common/net/gaia/oauth2_token_mint_consumer.h#newcode1 chrome/common/net/gaia/oauth2_token_mint_consumer.h:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
8 years, 9 months ago (2012-03-01 18:38:52 UTC) #4
jstritar
8 years, 9 months ago (2012-03-02 13:40:23 UTC) #5
LGTM

http://codereview.chromium.org/9549013/diff/1/chrome/common/net/gaia/oauth2_t...
File chrome/common/net/gaia/oauth2_token_mint_fetcher.h (right):

http://codereview.chromium.org/9549013/diff/1/chrome/common/net/gaia/oauth2_t...
chrome/common/net/gaia/oauth2_token_mint_fetcher.h:42: class
OAuth2TokenMintFetcher : public content::URLFetcherDelegate {
Could this be OAuth2TokenMint to use the noun form of mint?

http://codereview.chromium.org/9549013/diff/1/chrome/common/net/gaia/oauth2_t...
chrome/common/net/gaia/oauth2_token_mint_fetcher.h:77: static GURL
MakeMintTokenUrl();
On 2012/03/01 00:53:36, Antony Sargent wrote:
> Given that this is called "MakeMintTokenUrl" and we generally speak about
> "minting a token", would it make sense for this class to be named
> "OAuth2MintTokenFetcher"? I guess "mint" can be either a verb (to do the
> minting) or a noun (the place/thing that does generation).  No big deal either
> way. 

Yeah the names are a bit confusing. What do you think of saying 'Request'
instead of 'MintToken' here?

MakeRequestUrl
MakeRequestHeader
MakeRequestBody

Then the ParseMintTokenResponse method could be ParseResponse?

Powered by Google App Engine
This is Rietveld 408576698