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

Unified Diff: remoting/protocol/negotiating_authenticator.h

Issue 12313085: Host-side third party token validation (Closed) Base URL: http://git.chromium.org/chromium/src.git@third_party_auth_protocol
Patch Set: Reviewer comments Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/negotiating_authenticator.h
diff --git a/remoting/protocol/negotiating_authenticator.h b/remoting/protocol/negotiating_authenticator.h
index 7166cf517e15d617056b7544a50b1c495bfa0ee8..45682a478d32c7f5323ae52b5b30bf3dabb6a0b2 100644
--- a/remoting/protocol/negotiating_authenticator.h
+++ b/remoting/protocol/negotiating_authenticator.h
@@ -14,6 +14,7 @@
#include "base/memory/weak_ptr.h"
#include "remoting/protocol/authenticator.h"
#include "remoting/protocol/authentication_method.h"
+#include "remoting/protocol/third_party_host_authenticator.h"
namespace remoting {
@@ -75,12 +76,21 @@ class NegotiatingAuthenticator : public Authenticator {
const std::vector<AuthenticationMethod>& methods);
// Creates a host authenticator, using a fixed shared secret/PIN hash.
- static scoped_ptr<Authenticator> CreateForHost(
+ static scoped_ptr<Authenticator> CreateForHostSharedSecret(
const std::string& local_cert,
scoped_refptr<RsaKeyPair> key_pair,
const std::string& shared_secret_hash,
AuthenticationMethod::HashFunction hash_function);
+ // Creates a host authenticator, using third party authentication.
+ static scoped_ptr<Authenticator> CreateForHostThirdParty(
+ const std::string& local_cert,
+ scoped_refptr<RsaKeyPair> key_pair,
+ const std::string& local_jid,
+ const std::string& remote_jid,
rmsousa 2013/03/25 22:45:58 Yeah, passing all these parameters 3-4 callstacks
+ scoped_refptr<ThirdPartyHostAuthenticator::TokenValidatorFactory>
+ token_validator_factory);
+
// Authenticator interface.
virtual State state() const OVERRIDE;
virtual RejectionReason rejection_reason() const OVERRIDE;
@@ -123,8 +133,16 @@ class NegotiatingAuthenticator : public Authenticator {
// Used only for host authenticators.
std::string local_cert_;
scoped_refptr<RsaKeyPair> local_key_pair_;
+
+ // Used only for shared secret host authenticators.
std::string shared_secret_hash_;
+ // Used only for third party host authenticators.
+ std::string local_jid_;
+ std::string remote_jid_;
+ scoped_refptr<ThirdPartyHostAuthenticator::TokenValidatorFactory>
+ token_validator_factory_;
+
// Used only for client authenticators.
std::string authentication_tag_;
FetchSecretCallback fetch_secret_callback_;
« no previous file with comments | « remoting/protocol/me2me_host_authenticator_factory.cc ('k') | remoting/protocol/negotiating_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698