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

Side by Side Diff: chrome/browser/chromeos/login/google_authenticator.h

Issue 7756025: Changed OAuth token+secret encryption to use supplemental user key. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE; 113 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE;
114 virtual void RetryAuth(Profile* profile, 114 virtual void RetryAuth(Profile* profile,
115 const std::string& username, 115 const std::string& username,
116 const std::string& password, 116 const std::string& password,
117 const std::string& login_token, 117 const std::string& login_token,
118 const std::string& login_captcha) OVERRIDE; 118 const std::string& login_captcha) OVERRIDE;
119 virtual void VerifyOAuth1AccessToken(const std::string& auth1_token, 119 virtual void VerifyOAuth1AccessToken(const std::string& auth1_token,
120 const std::string& oauth1_secret) OVERRIDE; 120 const std::string& oauth1_secret) OVERRIDE;
121 virtual std::string EncryptToken(const std::string& token) OVERRIDE; 121 virtual std::string EncryptToken(const std::string& token) OVERRIDE;
122 virtual std::string DecryptToken(const std::string& encrypted_token) OVERRIDE; 122 virtual std::string DecryptToken(const std::string& encrypted_token) OVERRIDE;
123 virtual std::string DecryptLegacyToken(
124 const std::string& encrypted_token) OVERRIDE;
123 125
124 // Callbacks from GaiaAuthFetcher 126 // Callbacks from GaiaAuthFetcher
125 virtual void OnClientLoginFailure( 127 virtual void OnClientLoginFailure(
126 const GoogleServiceAuthError& error) OVERRIDE; 128 const GoogleServiceAuthError& error) OVERRIDE;
127 virtual void OnClientLoginSuccess( 129 virtual void OnClientLoginSuccess(
128 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE; 130 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE;
129 131
130 private: 132 private:
131 133
132 // If we don't have the system salt yet, loads it from the CryptohomeLibrary. 134 // If we don't have the system salt yet, loads it from the CryptohomeLibrary.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, LoginNetFailure); 248 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, LoginNetFailure);
247 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, LoginDenied); 249 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, LoginDenied);
248 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, TwoFactorLogin); 250 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, TwoFactorLogin);
249 251
250 DISALLOW_COPY_AND_ASSIGN(GoogleAuthenticator); 252 DISALLOW_COPY_AND_ASSIGN(GoogleAuthenticator);
251 }; 253 };
252 254
253 } // namespace chromeos 255 } // namespace chromeos
254 256
255 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_ 257 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/authenticator.h ('k') | chrome/browser/chromeos/login/google_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698