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

Side by Side Diff: chromeos/login/auth/authpolicy_login_helper.h

Issue 2835473002: Chromad: Allow offline login. (Closed)
Patch Set: Add TryAuthenticateUser call Created 3 years, 8 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_ 5 #ifndef CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_
6 #define CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_ 6 #define CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 17 matching lines...) Expand all
28 ~AuthPolicyLoginHelper(); 28 ~AuthPolicyLoginHelper();
29 29
30 // See AuthPolicyClient::JoinAdDomain. 30 // See AuthPolicyClient::JoinAdDomain.
31 void JoinAdDomain(const std::string& machine_name, 31 void JoinAdDomain(const std::string& machine_name,
32 const std::string& username, 32 const std::string& username,
33 const std::string& password, 33 const std::string& password,
34 JoinCallback callback); 34 JoinCallback callback);
35 35
36 // See AuthPolicyClient::AuthenticateUser. 36 // See AuthPolicyClient::AuthenticateUser.
37 void AuthenticateUser(const std::string& username, 37 void AuthenticateUser(const std::string& username,
38 const std::string& object_guid,
38 const std::string& password, 39 const std::string& password,
39 AuthCallback callback); 40 AuthCallback callback);
40 41
42 // Trying to get kerberos TGT. To get a result of this call one should use
43 // GetStatusCall afterwards. (see crbug.com/710452).
44 void TryAuthenticateUser(const std::string& username,
45 const std::string& object_guid,
46 const std::string& password);
47
41 // Cancel pending requests and restarts AuthPolicy service. 48 // Cancel pending requests and restarts AuthPolicy service.
42 void CancelRequestsAndRestart(); 49 void CancelRequestsAndRestart();
43 50
44 private: 51 private:
45 // Called from AuthPolicyClient::JoinAdDomain. 52 // Called from AuthPolicyClient::JoinAdDomain.
46 void OnJoinCallback(JoinCallback callback, authpolicy::ErrorType error); 53 void OnJoinCallback(JoinCallback callback, authpolicy::ErrorType error);
47 54
48 // Called from AuthPolicyClient::AuthenticateUser. 55 // Called from AuthPolicyClient::AuthenticateUser.
49 void OnAuthCallback( 56 void OnAuthCallback(
50 AuthCallback callback, 57 AuthCallback callback,
51 authpolicy::ErrorType error, 58 authpolicy::ErrorType error,
52 const authpolicy::ActiveDirectoryAccountData& account_data); 59 const authpolicy::ActiveDirectoryAccountData& account_data);
53 60
54 base::WeakPtrFactory<AuthPolicyLoginHelper> weak_factory_; 61 base::WeakPtrFactory<AuthPolicyLoginHelper> weak_factory_;
55 DISALLOW_COPY_AND_ASSIGN(AuthPolicyLoginHelper); 62 DISALLOW_COPY_AND_ASSIGN(AuthPolicyLoginHelper);
56 }; 63 };
57 64
58 } // namespace chromeos 65 } // namespace chromeos
59 66
60 #endif // CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_ 67 #endif // CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_auth_policy_client_unittest.cc ('k') | chromeos/login/auth/authpolicy_login_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698