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

Unified Diff: remoting/protocol/me2me_host_authenticator_factory.h

Issue 12326090: Third Party authentication protocol. (Closed) Base URL: http://git.chromium.org/chromium/src.git@host_key_pair
Patch Set: Add the missing new files Created 7 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 side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/me2me_host_authenticator_factory.h
diff --git a/remoting/protocol/me2me_host_authenticator_factory.h b/remoting/protocol/me2me_host_authenticator_factory.h
index 307a1931d661dbdbefdb2d20d645bf44f1e06c01..928c640000fae98c15e2219ecbac26ef4acf97f3 100644
--- a/remoting/protocol/me2me_host_authenticator_factory.h
+++ b/remoting/protocol/me2me_host_authenticator_factory.h
@@ -12,6 +12,7 @@
#include "base/memory/scoped_ptr.h"
#include "remoting/protocol/authentication_method.h"
#include "remoting/protocol/authenticator.h"
+#include "remoting/protocol/third_party_authenticator.h"
namespace remoting {
namespace protocol {
@@ -24,7 +25,11 @@ class Me2MeHostAuthenticatorFactory : public AuthenticatorFactory {
Me2MeHostAuthenticatorFactory(
const std::string& local_cert,
scoped_ptr<KeyPair> key_pair,
- const SharedSecretHash& shared_secret_hash);
+ const SharedSecretHash& shared_secret_hash,
+ const std::string& token_url,
+ const std::string& token_validation_url,
+ ThirdPartyAuthenticator::TokenValidatorFactory*
+ third_party_token_validator_factory);
virtual ~Me2MeHostAuthenticatorFactory();
// AuthenticatorFactory interface.
@@ -38,6 +43,10 @@ class Me2MeHostAuthenticatorFactory : public AuthenticatorFactory {
std::string local_cert_;
scoped_ptr<KeyPair> key_pair_;
SharedSecretHash shared_secret_hash_;
+ std::string third_party_token_url_;
+ std::string third_party_token_validation_url_;
+ ThirdPartyAuthenticator::TokenValidatorFactory*
+ third_party_token_validator_factory_;
DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory);
};

Powered by Google App Engine
This is Rietveld 408576698