summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/third_party_client_authenticator.h
diff options
context:
space:
mode:
authorrmsousa@chromium.org <rmsousa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-06 05:01:02 +0000
committerrmsousa@chromium.org <rmsousa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-06 05:01:02 +0000
commit34e25581f9c2513ef1b294cadfa6c4ea250c288c (patch)
tree553a7350cbe2a4bb5776ba1a90503ba44b8766d4 /remoting/protocol/third_party_client_authenticator.h
parent65cda75721ab60e85c7bb9a37a92be7ea7fd8054 (diff)
downloadchromium_src-34e25581f9c2513ef1b294cadfa6c4ea250c288c.zip
chromium_src-34e25581f9c2513ef1b294cadfa6c4ea250c288c.tar.gz
chromium_src-34e25581f9c2513ef1b294cadfa6c4ea250c288c.tar.bz2
Client plugin changes to support third party authentication.
This creates a TokenFetcher implementation that on the client that uses the webapp to direct the user to fetch a token and secret from the given token URL. If the URL requires interactive authentication, the webapp will open a tab/window for the user to authenticate. Once the webapp has a token and shared secret, it uses the callback to send it back to the authentication layer. This also glues the third party authentication method to the NegotiatingAuthenticator. BUG=115899 Review URL: https://chromiumcodereview.appspot.com/12475020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/third_party_client_authenticator.h')
-rw-r--r--remoting/protocol/third_party_client_authenticator.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/remoting/protocol/third_party_client_authenticator.h b/remoting/protocol/third_party_client_authenticator.h
index 0827c17..696d8a67 100644
--- a/remoting/protocol/third_party_client_authenticator.h
+++ b/remoting/protocol/third_party_client_authenticator.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "googleurl/src/gurl.h"
#include "remoting/protocol/third_party_authenticator_base.h"
class GURL;
@@ -49,15 +50,14 @@ class ThirdPartyClientAuthenticator : public ThirdPartyAuthenticatorBase {
// The request is canceled if the TokenFetcher is destroyed.
virtual void FetchThirdPartyToken(
const GURL& token_url,
- const std::string& host_public_key,
const std::string& scope,
const TokenFetchedCallback& token_fetched_callback) = 0;
};
// Creates a third-party client authenticator for the host with the given
// |host_public_key|. |token_fetcher| is used to get the authentication token.
- ThirdPartyClientAuthenticator(const std::string& host_public_key,
- scoped_ptr<TokenFetcher> token_fetcher);
+ explicit ThirdPartyClientAuthenticator(
+ scoped_ptr<TokenFetcher> token_fetcher);
virtual ~ThirdPartyClientAuthenticator();
protected:
@@ -72,7 +72,6 @@ class ThirdPartyClientAuthenticator : public ThirdPartyAuthenticatorBase {
const std::string& third_party_token,
const std::string& shared_secret);
- std::string host_public_key_;
std::string token_;
scoped_ptr<TokenFetcher> token_fetcher_;