summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-12-03 07:03:17 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2013-12-03 07:06:48 -0700
commitc9df84fda7963fe84848c3636d87696bc22169a5 (patch)
tree638d078b430eb46e7a705f56b23c8aa40b1e1d4d /src
parentad918fafe60042e2bff664e3d140099fd5544754 (diff)
downloadDotNetOpenAuth-c9df84fda7963fe84848c3636d87696bc22169a5.zip
DotNetOpenAuth-c9df84fda7963fe84848c3636d87696bc22169a5.tar.gz
DotNetOpenAuth-c9df84fda7963fe84848c3636d87696bc22169a5.tar.bz2
Removes inappropriate input validation of the signingKey argument in the AccessToken.CreateFormatter method.
This was breaking ResourceServer scenarios where the ResourceServer did not have the authorization server's private signing key. Fixes #298
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth.OAuth2/OAuth2/AccessToken.cs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.OAuth2/OAuth2/AccessToken.cs b/src/DotNetOpenAuth.OAuth2/OAuth2/AccessToken.cs
index ab1cae6..48a8161 100644
--- a/src/DotNetOpenAuth.OAuth2/OAuth2/AccessToken.cs
+++ b/src/DotNetOpenAuth.OAuth2/OAuth2/AccessToken.cs
@@ -51,8 +51,6 @@ namespace DotNetOpenAuth.OAuth2 {
/// <param name="encryptingKey">The crypto service provider with the resource server's public key used to encrypt the access token.</param>
/// <returns>An access token serializer.</returns>
internal static IDataBagFormatter<AccessToken> CreateFormatter(RSACryptoServiceProvider signingKey, RSACryptoServiceProvider encryptingKey) {
- Requires.That(signingKey == null || !signingKey.PublicOnly, "signingKey", "requires private key");
-
return new UriStyleMessageFormatter<AccessToken>(signingKey, encryptingKey);
}