summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/third_party_authenticator_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/third_party_authenticator_base.cc')
-rw-r--r--remoting/protocol/third_party_authenticator_base.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/remoting/protocol/third_party_authenticator_base.cc b/remoting/protocol/third_party_authenticator_base.cc
index 9d6be72..019e788 100644
--- a/remoting/protocol/third_party_authenticator_base.cc
+++ b/remoting/protocol/third_party_authenticator_base.cc
@@ -28,12 +28,17 @@ const buzz::StaticQName ThirdPartyAuthenticatorBase::kTokenTag =
ThirdPartyAuthenticatorBase::ThirdPartyAuthenticatorBase(
Authenticator::State initial_state)
: token_state_(initial_state),
+ started_(false),
rejection_reason_(INVALID_CREDENTIALS) {
}
ThirdPartyAuthenticatorBase::~ThirdPartyAuthenticatorBase() {
}
+bool ThirdPartyAuthenticatorBase::started() const {
+ return started_;
+}
+
Authenticator::State ThirdPartyAuthenticatorBase::state() const {
if (token_state_ == ACCEPTED)
return underlying_->state();
@@ -74,9 +79,10 @@ scoped_ptr<buzz::XmlElement> ThirdPartyAuthenticatorBase::GetNextMessage() {
message = CreateEmptyAuthenticatorMessage();
}
- if (token_state_ == MESSAGE_READY)
+ if (token_state_ == MESSAGE_READY) {
AddTokenElements(message.get());
-
+ started_ = true;
+ }
return message.Pass();
}