Home
last modified time | relevance | path

Searched refs:auth_code (Results 1 – 25 of 37) sorted by relevance

12

/external/chromium_org/remoting/host/setup/win/
Dauth_code_getter.cc60 std::string auth_code; in OnTimer() local
61 if (TestBrowserUrl(&auth_code)) { in OnTimer()
62 on_auth_code_.Run(auth_code); in OnTimer()
68 bool AuthCodeGetter::TestBrowserUrl(std::string* auth_code) { in TestBrowserUrl() argument
69 *auth_code = ""; in TestBrowserUrl()
79 *auth_code = GetOauthCodeInUrl(WideToUTF8(static_cast<BSTR>(url)), in TestBrowserUrl()
81 if (!auth_code->empty()) { in TestBrowserUrl()
Dauth_code_getter.h38 bool TestBrowserUrl(std::string* auth_code);
/external/chromium_org/remoting/host/setup/
Doauth_client.cc23 const std::string& auth_code, in GetCredentialsFromAuthCode() argument
27 pending_requests_.push(Request(oauth_client_info, auth_code, on_done)); in GetCredentialsFromAuthCode()
33 gaia_oauth_client_.GetTokensFromAuthCode(oauth_client_info, auth_code, in GetCredentialsFromAuthCode()
65 request.oauth_client_info, request.auth_code, request.on_done); in SendResponse()
83 const std::string& auth_code, in Request() argument
86 this->auth_code = auth_code; in Request()
Doauth_client.h41 const std::string& auth_code,
58 const std::string& auth_code,
62 std::string auth_code; member
Dstart_host.cc94 std::string auth_code = command_line->GetSwitchValueASCII("code"); in main() local
134 if (auth_code.empty()) { in main()
137 auth_code = ReadString(true); in main()
163 host_starter->StartHost(host_name, host_pin, true, auth_code, redirect_url, in main()
Dhost_starter.cc56 const std::string& auth_code, in StartHost() argument
72 oauth_client_->GetTokensFromAuthCode(oauth_client_info_, auth_code, in StartHost()
Dme2me_native_messaging_host.cc375 std::string auth_code; in ProcessGetCredentialsFromAuthCode() local
376 if (!message.GetString("authorizationCode", &auth_code)) { in ProcessGetCredentialsFromAuthCode()
388 oauth_client_info, auth_code, base::Bind( in ProcessGetCredentialsFromAuthCode()
/external/chromium_org/chrome/browser/chromeos/login/
Duser.cc116 const std::string& auth_code) in UserContext() argument
119 auth_code(auth_code), in UserContext()
125 const std::string& auth_code, in UserContext() argument
129 auth_code(auth_code), in UserContext()
136 const std::string& auth_code, in UserContext() argument
141 auth_code(auth_code), in UserContext()
152 context.auth_code == auth_code && in operator ==()
Doauth2_token_fetcher.cc64 const std::string& auth_code) { in StartExchangeFromAuthCode() argument
66 auth_code_ = auth_code; in StartExchangeFromAuthCode()
79 auth_code), in StartExchangeFromAuthCode()
83 auth_fetcher_.StartAuthCodeForOAuth2TokenExchange(auth_code); in StartExchangeFromAuthCode()
Duser.h30 const std::string& auth_code);
33 const std::string& auth_code,
37 const std::string& auth_code,
44 std::string auth_code; member
Doauth2_token_fetcher.h42 void StartExchangeFromAuthCode(const std::string& auth_code);
Donline_attempt_host.cc39 user_context.auth_code), in Check()
Dlogin_performer.cc310 user_context_.auth_code.clear(); in StartLoginCompletion()
331 user_context_.auth_code.clear(); in StartAuthentication()
Doauth2_login_manager.cc64 const std::string& auth_code) { in RestoreSession() argument
69 auth_code_ = auth_code; in RestoreSession()
Dlogin_utils.cc456 user_context_.auth_code = command_line->GetSwitchValueASCII( in InitSessionRestoreStrategy()
461 if (!user_context_.auth_code.empty()) { in InitSessionRestoreStrategy()
475 } else if (!user_context_.auth_code.empty()) { in InitSessionRestoreStrategy()
558 user_context_.auth_code); in RestoreAuthSession()
/external/chromium/chrome/common/net/gaia/
Dgaia_oauth_client.cc38 const std::string& auth_code,
75 const std::string& auth_code, in GetTokensFromAuthCode() argument
79 "code=" + EscapeUrlEncodedData(auth_code) + in GetTokensFromAuthCode()
199 const std::string& auth_code, in GetTokensFromAuthCode() argument
203 auth_code, in GetTokensFromAuthCode()
Dgaia_oauth_client.h58 const std::string& auth_code,
/external/chromium_org/google_apis/gaia/
Dgaia_auth_fetcher.cc313 const std::string& auth_code) { in MakeGetTokenPairBody() argument
320 std::string encoded_auth_code = net::EscapeUrlEncodedData(auth_code, true); in MakeGetTokenPairBody()
430 std::string* auth_code) { in ParseClientLoginToOAuth2Response() argument
431 DCHECK(auth_code); in ParseClientLoginToOAuth2Response()
434 if (ParseClientLoginToOAuth2Cookie(*iter, auth_code)) in ParseClientLoginToOAuth2Response()
442 std::string* auth_code) { in ParseClientLoginToOAuth2Cookie() argument
456 auth_code->assign(part.substr( in ParseClientLoginToOAuth2Cookie()
573 const std::string& auth_code) { in StartAuthCodeForOAuth2TokenExchange() argument
577 request_body_ = MakeGetTokenPairBody(auth_code); in StartAuthCodeForOAuth2TokenExchange()
818 std::string auth_code; in OnClientLoginToOAuth2Fetched() local
[all …]
Dgaia_auth_fetcher_unittest.cc734 std::string auth_code; in TEST_F() local
737 cookies, &auth_code)); in TEST_F()
738 EXPECT_EQ("", auth_code); in TEST_F()
741 std::string auth_code; in TEST_F() local
747 cookies, &auth_code)); in TEST_F()
748 EXPECT_EQ("", auth_code); in TEST_F()
751 std::string auth_code; in TEST_F() local
758 cookies, &auth_code)); in TEST_F()
759 EXPECT_EQ("test-code", auth_code); in TEST_F()
762 std::string auth_code; in TEST_F() local
[all …]
Dgaia_oauth_client.cc45 const std::string& auth_code,
99 const std::string& auth_code, in GetTokensFromAuthCode() argument
105 "code=" + net::EscapeUrlEncodedData(auth_code, true) + in GetTokensFromAuthCode()
338 const std::string& auth_code, in GetTokensFromAuthCode() argument
342 auth_code, in GetTokensFromAuthCode()
Dgaia_auth_fetcher.h123 void StartAuthCodeForOAuth2TokenExchange(const std::string& auth_code);
294 std::string* auth_code);
297 std::string* auth_code);
319 static std::string MakeGetTokenPairBody(const std::string& auth_code);
Dgaia_oauth_client.h76 const std::string& auth_code,
/external/chromium_org/chrome/service/cloud_print/
Dcloud_print_auth.cc174 std::string auth_code; in HandleJSONData() local
175 if (!json_data->GetString(kOAuthCodeValue, &auth_code)) { in HandleJSONData()
193 auth_code, in HandleJSONData()
/external/chromium_org/chrome/browser/managed_mode/
Dmanaged_user_refresh_token_fetcher.cc212 std::string auth_code; in OnURLFetchComplete() local
213 if (!dict->GetString(kCodeKey, &auth_code)) { in OnURLFetchComplete()
223 gaia_oauth_client_->GetTokensFromAuthCode(client_info, auth_code, kNumRetries, in OnURLFetchComplete()
Dmanaged_user_refresh_token_fetcher_unittest.cc172 std::string auth_code; in GetRefreshTokenRequest() local
173 EXPECT_TRUE(GetValueForKey(url_fetcher->upload_data(), "code", &auth_code)); in GetRefreshTokenRequest()
174 EXPECT_EQ(kAuthorizationCode, auth_code); in GetRefreshTokenRequest()

12