diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-02 09:25:24 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-02 09:25:24 -0800 |
commit | cd7bed180abfe36ba4ae778d70cd7976de55907d (patch) | |
tree | 27c94ba5cede9387c2abafff97c817ab575313ad /src/DotNetOpenAuth.OAuth.Consumer/OAuth/Consumer.cs | |
parent | 1a1a37ebb26034d2f5470c3be2da18cefe5293da (diff) | |
download | DotNetOpenAuth-cd7bed180abfe36ba4ae778d70cd7976de55907d.zip DotNetOpenAuth-cd7bed180abfe36ba4ae778d70cd7976de55907d.tar.gz DotNetOpenAuth-cd7bed180abfe36ba4ae778d70cd7976de55907d.tar.bz2 |
Fixes some recent regressions to get twitter.aspx working.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth.Consumer/OAuth/Consumer.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth.Consumer/OAuth/Consumer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/Consumer.cs b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/Consumer.cs index 578902c..560e536 100644 --- a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/Consumer.cs +++ b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/Consumer.cs @@ -215,7 +215,7 @@ namespace DotNetOpenAuth.OAuth { /// <returns> /// The access token assigned by the Service Provider, or <c>null</c> if no response was detected in the specified URL. /// </returns> - public Task<AccessTokenResponse> ProcessUserAuthorizationAsync(Uri authorizationCompleteUri, CancellationToken cancellationToken = default(CancellationToken)) { + public async Task<AccessTokenResponse> ProcessUserAuthorizationAsync(Uri authorizationCompleteUri, CancellationToken cancellationToken = default(CancellationToken)) { Requires.NotNull(authorizationCompleteUri, "authorizationCompleteUri"); Verify.Operation(this.TemporaryCredentialStorage != null, Strings.RequiredPropertyNotYetPreset, "TemporaryCredentialStorage"); @@ -235,7 +235,7 @@ namespace DotNetOpenAuth.OAuth { var temporaryCredential = this.TemporaryCredentialStorage.RetrieveTemporaryCredential(); Verify.Operation(string.Equals(temporaryCredential.Key, identifier, StringComparison.Ordinal), "Temporary credential identifiers do not match."); - return this.ProcessUserAuthorizationAsync(verifier, cancellationToken); + return await this.ProcessUserAuthorizationAsync(verifier, cancellationToken); } /// <summary> |