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

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: 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/negotiating_authenticator.h
diff --git a/remoting/protocol/negotiating_authenticator.h b/remoting/protocol/negotiating_authenticator.h
index 7166cf517e15d617056b7544a50b1c495bfa0ee8..9d2131e407393243d49b279d2644b8d4d4add94f 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,23 @@ 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(
Sergey Ulanov 2013/03/28 22:34:54 maybe CreateForHostWithSharedSecret()?
rmsousa 2013/04/04 22:13:43 Done.
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 GURL& token_url,
+ const GURL& token_validation_url,
+ const std::string& local_jid,
+ const std::string& remote_jid,
+ ThirdPartyHostAuthenticator::TokenValidatorFactory*
+ token_validator_factory);
+
// Authenticator interface.
virtual State state() const OVERRIDE;
virtual RejectionReason rejection_reason() const OVERRIDE;
@@ -123,8 +135,17 @@ 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_;
+ GURL token_url_;
+ GURL token_validation_url_;
+ ThirdPartyHostAuthenticator::TokenValidatorFactory* token_validator_factory_;
+
// Used only for client authenticators.
std::string authentication_tag_;
FetchSecretCallback fetch_secret_callback_;

Powered by Google App Engine
This is Rietveld 408576698