diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-01-23 20:33:18 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-01-23 20:33:18 -0800 |
commit | b16591e45dd70602b1899d760200e72fd6d5eaec (patch) | |
tree | 58c9f0885964a613c9a57f1a6ce5ceb93dbef58e /samples/OpenIdWebRingSsoProvider/Code/Util.cs | |
parent | 9cccb5d1976e4753daf0ff12fc93268eaa1f541b (diff) | |
download | DotNetOpenAuth-b16591e45dd70602b1899d760200e72fd6d5eaec.zip DotNetOpenAuth-b16591e45dd70602b1899d760200e72fd6d5eaec.tar.gz DotNetOpenAuth-b16591e45dd70602b1899d760200e72fd6d5eaec.tar.bz2 |
Fixes more samples.
Diffstat (limited to 'samples/OpenIdWebRingSsoProvider/Code/Util.cs')
-rw-r--r-- | samples/OpenIdWebRingSsoProvider/Code/Util.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/samples/OpenIdWebRingSsoProvider/Code/Util.cs b/samples/OpenIdWebRingSsoProvider/Code/Util.cs index 5599b73..bd01638 100644 --- a/samples/OpenIdWebRingSsoProvider/Code/Util.cs +++ b/samples/OpenIdWebRingSsoProvider/Code/Util.cs @@ -7,6 +7,8 @@ namespace OpenIdWebRingSsoProvider.Code { using System; using System.Configuration; + using System.Threading; + using System.Threading.Tasks; using System.Web; using DotNetOpenAuth.OpenId; using DotNetOpenAuth.OpenId.Extensions.AttributeExchange; @@ -50,9 +52,9 @@ namespace OpenIdWebRingSsoProvider.Code { return new Uri(HttpContext.Current.Request.Url, HttpContext.Current.Response.ApplyAppPathModifier("~/user.aspx/" + username)); } - internal static void ProcessAuthenticationChallenge(IAuthenticationRequest idrequest) { + internal static async Task ProcessAuthenticationChallengeAsync(IAuthenticationRequest idrequest, CancellationToken cancellationToken) { // Verify that RP discovery is successful. - if (idrequest.IsReturnUrlDiscoverable(ProviderEndpoint.Provider.Channel.WebRequestHandler) != RelyingPartyDiscoveryResult.Success) { + if (await idrequest.IsReturnUrlDiscoverableAsync(ProviderEndpoint.Provider.Channel.HostFactories, cancellationToken) != RelyingPartyDiscoveryResult.Success) { idrequest.IsAuthenticated = false; return; } |