summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--samples/OAuthConsumer/Web.config3
-rw-r--r--samples/OAuthServiceProvider/Web.config3
-rw-r--r--src/DotNetOpenAuth/OAuthWrap/ChannelElements/OAuthWrapAuthorizationServerChannel.cs3
-rw-r--r--src/DotNetOpenAuth/OAuthWrap/ChannelElements/WebAppVerificationCodeBindingElement.cs2
-rw-r--r--src/DotNetOpenAuth/OAuthWrap/Messages/WebServer/WebAppAccessTokenRequest.cs3
5 files changed, 14 insertions, 0 deletions
diff --git a/samples/OAuthConsumer/Web.config b/samples/OAuthConsumer/Web.config
index a162155..20c5822 100644
--- a/samples/OAuthConsumer/Web.config
+++ b/samples/OAuthConsumer/Web.config
@@ -39,6 +39,9 @@
<dotNetOpenAuth>
<!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
<reporting enabled="true" />
+
+ <!-- FOR TESTING ONLY, we relax the SSL requirements. -->
+ <messaging relaxSslRequirements="true" />
</dotNetOpenAuth>
<appSettings>
diff --git a/samples/OAuthServiceProvider/Web.config b/samples/OAuthServiceProvider/Web.config
index 9a53b4a..76f2232 100644
--- a/samples/OAuthServiceProvider/Web.config
+++ b/samples/OAuthServiceProvider/Web.config
@@ -39,6 +39,9 @@
<dotNetOpenAuth>
<!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
<reporting enabled="true" />
+
+ <!-- FOR TESTING ONLY, we relax the SSL requirements. -->
+ <messaging relaxSslRequirements="true" />
</dotNetOpenAuth>
<appSettings/>
diff --git a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/OAuthWrapAuthorizationServerChannel.cs b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/OAuthWrapAuthorizationServerChannel.cs
index 336f582..aa6e1be 100644
--- a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/OAuthWrapAuthorizationServerChannel.cs
+++ b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/OAuthWrapAuthorizationServerChannel.cs
@@ -70,7 +70,10 @@ namespace DotNetOpenAuth.OAuthWrap.ChannelElements {
Contract.Requires<ArgumentNullException>(request != null, "request");
var response = new AccessTokenSuccessResponse(request) {
+ Scope = request.Scope,
// TODO: code here to initialize the response
+ AccessToken = "TODO",
+ RefreshToken = "TODO",
};
return response;
diff --git a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/WebAppVerificationCodeBindingElement.cs b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/WebAppVerificationCodeBindingElement.cs
index 31639f3..125a448 100644
--- a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/WebAppVerificationCodeBindingElement.cs
+++ b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/WebAppVerificationCodeBindingElement.cs
@@ -109,6 +109,8 @@ namespace DotNetOpenAuth.OAuthWrap.ChannelElements {
throw new ReplayedMessageException(message);
}
+ request.Scope = verificationCode.Scope;
+
return MessageProtections.None;
}
diff --git a/src/DotNetOpenAuth/OAuthWrap/Messages/WebServer/WebAppAccessTokenRequest.cs b/src/DotNetOpenAuth/OAuthWrap/Messages/WebServer/WebAppAccessTokenRequest.cs
index 86404ba..d9d482d 100644
--- a/src/DotNetOpenAuth/OAuthWrap/Messages/WebServer/WebAppAccessTokenRequest.cs
+++ b/src/DotNetOpenAuth/OAuthWrap/Messages/WebServer/WebAppAccessTokenRequest.cs
@@ -45,6 +45,9 @@ namespace DotNetOpenAuth.OAuthWrap.Messages {
Contract.Requires<ArgumentNullException>(authorizationServer != null);
Contract.Requires<ArgumentException>(authorizationServer.Version != null);
Contract.Requires<ArgumentException>(authorizationServer.TokenEndpoint != null);
+
+ // We prefer URL encoding of the data.
+ this.Format = ResponseFormat.Form;
}
/// <summary>