summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OpenId.Provider/OpenId/Provider/AuthenticationRequest.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-01-12 15:11:04 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-01-12 15:11:04 -0800
commit59c362497f6a724f3e5a1ba94ff3f80d8f6f5dac (patch)
tree52fd4c1b126b6dca495f9a2ddba95a0c80f8438d /src/DotNetOpenAuth.OpenId.Provider/OpenId/Provider/AuthenticationRequest.cs
parent0617c2490d1e2455f677f927b31f8e017bae3382 (diff)
downloadDotNetOpenAuth-59c362497f6a724f3e5a1ba94ff3f80d8f6f5dac.zip
DotNetOpenAuth-59c362497f6a724f3e5a1ba94ff3f80d8f6f5dac.tar.gz
DotNetOpenAuth-59c362497f6a724f3e5a1ba94ff3f80d8f6f5dac.tar.bz2
OpenId.Provider now builds.
Diffstat (limited to 'src/DotNetOpenAuth.OpenId.Provider/OpenId/Provider/AuthenticationRequest.cs')
-rw-r--r--src/DotNetOpenAuth.OpenId.Provider/OpenId/Provider/AuthenticationRequest.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/DotNetOpenAuth.OpenId.Provider/OpenId/Provider/AuthenticationRequest.cs b/src/DotNetOpenAuth.OpenId.Provider/OpenId/Provider/AuthenticationRequest.cs
index 0167580..a13cba1 100644
--- a/src/DotNetOpenAuth.OpenId.Provider/OpenId/Provider/AuthenticationRequest.cs
+++ b/src/DotNetOpenAuth.OpenId.Provider/OpenId/Provider/AuthenticationRequest.cs
@@ -6,6 +6,8 @@
namespace DotNetOpenAuth.OpenId.Provider {
using System;
+ using System.Threading;
+ using System.Threading.Tasks;
using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.OpenId.Messages;
using Validation;
@@ -177,13 +179,11 @@ namespace DotNetOpenAuth.OpenId.Provider {
/// <summary>
/// Gets the response message, once <see cref="IsResponseReady"/> is <c>true</c>.
/// </summary>
- protected override IProtocolMessage ResponseMessage {
- get {
- if (this.IsAuthenticated.HasValue) {
- return this.IsAuthenticated.Value ? (IProtocolMessage)this.positiveResponse : this.NegativeResponse;
- } else {
- return null;
- }
+ protected override async Task<IProtocolMessage> GetResponseMessageAsync(CancellationToken cancellationToken) {
+ if (this.IsAuthenticated.HasValue) {
+ return this.IsAuthenticated.Value ? (IProtocolMessage)this.positiveResponse : (await this.GetNegativeResponseAsync());
+ } else {
+ return null;
}
}