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

Unified Diff: remoting/protocol/me2me_host_authenticator_factory.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: Add missing parameters 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/me2me_host_authenticator_factory.h
diff --git a/remoting/protocol/me2me_host_authenticator_factory.h b/remoting/protocol/me2me_host_authenticator_factory.h
index e6375a23eb4799bb7f8746fc0e62b28b05095a2e..dbbb51d873784190105782a2fb447a9ae6b85ef9 100644
--- a/remoting/protocol/me2me_host_authenticator_factory.h
+++ b/remoting/protocol/me2me_host_authenticator_factory.h
@@ -13,6 +13,7 @@
#include "base/memory/scoped_ptr.h"
#include "remoting/protocol/authentication_method.h"
#include "remoting/protocol/authenticator.h"
+#include "remoting/protocol/third_party_host_authenticator.h"
namespace remoting {
@@ -25,7 +26,11 @@ class Me2MeHostAuthenticatorFactory : public AuthenticatorFactory {
Me2MeHostAuthenticatorFactory(
const std::string& local_cert,
scoped_refptr<RsaKeyPair> key_pair,
- const SharedSecretHash& shared_secret_hash);
+ const SharedSecretHash& shared_secret_hash,
+ const GURL& token_url,
+ const GURL& token_validation_url,
+ ThirdPartyHostAuthenticator::TokenValidatorFactory*
+ token_validator_factory);
virtual ~Me2MeHostAuthenticatorFactory();
// AuthenticatorFactory interface.
@@ -35,11 +40,22 @@ class Me2MeHostAuthenticatorFactory : public AuthenticatorFactory {
const buzz::XmlElement* first_message) OVERRIDE;
private:
+ bool IsThirdPartyAuthenticationEnabled() const;
+
std::string local_jid_prefix_;
+
+ // Used for all host authenticators.
std::string local_cert_;
scoped_refptr<RsaKeyPair> key_pair_;
+
+ // Used only for shared secret host authenticators.
SharedSecretHash shared_secret_hash_;
+ // Used only for third party host authenticators.
+ GURL token_url_;
+ GURL token_validation_url_;
+ ThirdPartyHostAuthenticator::TokenValidatorFactory* token_validator_factory_;
+
DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory);
};

Powered by Google App Engine
This is Rietveld 408576698