diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-01-29 15:05:32 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-01-29 15:05:32 -0800 |
commit | c20bca6e589aeb3176e755a210a5b75565106017 (patch) | |
tree | 24716e579d6e8af4871c4873efdad11185bf41b4 /src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs | |
parent | 5fec515095ee10b522f414a03e78f282aaf520dc (diff) | |
parent | fc0c0e297798f12e556917dbb27f7966c181df10 (diff) | |
download | DotNetOpenAuth-c20bca6e589aeb3176e755a210a5b75565106017.zip DotNetOpenAuth-c20bca6e589aeb3176e755a210a5b75565106017.tar.gz DotNetOpenAuth-c20bca6e589aeb3176e755a210a5b75565106017.tar.bz2 |
Merge branch 'v3.4'
Conflicts:
nuget/nuget.proj
samples/OpenIdOfflineProvider/OpenIdOfflineProvider.csproj
src/DotNetOpenAuth/DotNetOpenAuth.csproj
src/DotNetOpenAuth/Messaging/Reflection/MessageDescription.cs
tools/DotNetOpenAuth.props
Diffstat (limited to 'src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs index 89f5a5f..0366f0a 100644 --- a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs +++ b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/ConsumerBase.cs @@ -84,8 +84,9 @@ namespace DotNetOpenAuth.OAuth { /// The token secret is stored in the <see cref="TokenManager"/>. /// </remarks> public string RequestNewClientAccount(IDictionary<string, string> requestParameters = null) { - // Obtain an unauthorized request token. Assume the OAuth version given in the service description. - var token = new UnauthorizedTokenRequest(this.ServiceProvider.RequestTokenEndpoint, this.ServiceProvider.Version) { + // Obtain an unauthorized request token. Force use of OAuth 1.0 (not 1.0a) so that + // we are not expected to provide an oauth_verifier which doesn't apply in 2-legged OAuth. + var token = new UnauthorizedTokenRequest(this.ServiceProvider.RequestTokenEndpoint, Protocol.V10.Version) { ConsumerKey = this.ConsumerKey, }; var tokenAccessor = this.Channel.MessageDescriptions.GetAccessor(token); @@ -93,7 +94,7 @@ namespace DotNetOpenAuth.OAuth { var requestTokenResponse = this.Channel.Request<UnauthorizedTokenResponse>(token); this.TokenManager.StoreNewRequestToken(token, requestTokenResponse); - var requestAccess = new AuthorizedTokenRequest(this.ServiceProvider.AccessTokenEndpoint, this.ServiceProvider.Version) { + var requestAccess = new AuthorizedTokenRequest(this.ServiceProvider.AccessTokenEndpoint, Protocol.V10.Version) { RequestToken = requestTokenResponse.RequestToken, ConsumerKey = this.ConsumerKey, }; |