diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-01-12 13:03:26 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-01-12 13:03:26 -0800 |
commit | 0617c2490d1e2455f677f927b31f8e017bae3382 (patch) | |
tree | d9763cfdd3b7e03ae893e2f9241964bb34d92d59 /src/DotNetOpenAuth.OpenId.RelyingParty.UI/OpenId/RelyingParty/OpenIdTextBox.cs | |
parent | 42abd562b7f5a73f8ddb5450230ec4d1cada8b06 (diff) | |
download | DotNetOpenAuth-0617c2490d1e2455f677f927b31f8e017bae3382.zip DotNetOpenAuth-0617c2490d1e2455f677f927b31f8e017bae3382.tar.gz DotNetOpenAuth-0617c2490d1e2455f677f927b31f8e017bae3382.tar.bz2 |
OpenID.RP.UI now builds, and ASP.NET control login works.
Diffstat (limited to 'src/DotNetOpenAuth.OpenId.RelyingParty.UI/OpenId/RelyingParty/OpenIdTextBox.cs')
-rw-r--r-- | src/DotNetOpenAuth.OpenId.RelyingParty.UI/OpenId/RelyingParty/OpenIdTextBox.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.OpenId.RelyingParty.UI/OpenId/RelyingParty/OpenIdTextBox.cs b/src/DotNetOpenAuth.OpenId.RelyingParty.UI/OpenId/RelyingParty/OpenIdTextBox.cs index 7474854..9a5daf8 100644 --- a/src/DotNetOpenAuth.OpenId.RelyingParty.UI/OpenId/RelyingParty/OpenIdTextBox.cs +++ b/src/DotNetOpenAuth.OpenId.RelyingParty.UI/OpenId/RelyingParty/OpenIdTextBox.cs @@ -20,6 +20,8 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { using System.Net; using System.Text; using System.Text.RegularExpressions; + using System.Threading; + using System.Threading.Tasks; using System.Web; using System.Web.Security; using System.Web.UI; @@ -550,12 +552,12 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { /// A sequence of authentication requests, any one of which may be /// used to determine the user's control of the <see cref="IAuthenticationRequest.ClaimedIdentifier"/>. /// </returns> - protected internal override IEnumerable<IAuthenticationRequest> CreateRequests(Identifier identifier) { + protected internal override async Task<IEnumerable<IAuthenticationRequest>> CreateRequestsAsync(Identifier identifier, CancellationToken cancellationToken) { ErrorUtilities.VerifyArgumentNotNull(identifier, "identifier"); // We delegate all our logic to another method, since invoking base. methods // within an iterator method results in unverifiable code. - return this.CreateRequestsCore(base.CreateRequests(identifier)); + return this.CreateRequestsCore(await base.CreateRequestsAsync(identifier, cancellationToken)); } /// <summary> @@ -696,7 +698,7 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { Language = this.RequestLanguage, TimeZone = this.RequestTimeZone, PolicyUrl = string.IsNullOrEmpty(this.PolicyUrl) ? - null : new Uri(this.RelyingParty.Channel.GetRequestFromContext().GetPublicFacingUrl(), this.Page.ResolveUrl(this.PolicyUrl)), + null : new Uri(new HttpRequestWrapper(this.Context.Request).GetPublicFacingUrl(), this.Page.ResolveUrl(this.PolicyUrl)), }; // Only actually add the extension request if fields are actually being requested. |