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

Side by Side Diff: remoting/host/user_authenticator.h

Issue 6484002: Authenticate user/password with PAM in BeginSessionRequest() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed nit Created 9 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_USER_AUTHENTICATOR_H_
6 #define REMOTING_HOST_USER_AUTHENTICATOR_H_
7
8 #include <string>
9
10 namespace remoting {
11
12 // Interface for authenticating users for access to remote desktop session.
13 // Implementation is platform-specific.
14 // Implementations may assume each instance of this class handles only a
15 // single Authenticate request.
16 // TODO(lambroslambrou): Decide whether this needs an asychronous interface
17 // (for example AuthenticateStart()..AuthenticateEndCallback()), or whether the
18 // multi-threading policy could be handled by the caller.
19 class UserAuthenticator {
20 public:
21 virtual ~UserAuthenticator() {}
22
23 // Authenticate a user, returning true if the username/password are valid.
24 virtual bool Authenticate(const std::string& username,
25 const std::string& password) = 0;
26 };
27
28 } // namespace remoting
29
30 #endif // REMOTING_HOST_USER_AUTHENTICATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698