summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs')
-rw-r--r--samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs b/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs
index 75778f5..e281b07 100644
--- a/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs
+++ b/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs
@@ -11,9 +11,9 @@
using DotNetOpenAuth.OAuthWrap.ChannelElements;
internal class OAuth2AuthorizationServer : IAuthorizationServer {
- private static readonly byte[] secret;
+ internal static readonly RSAParameters AsymmetricKey;
- internal static readonly RSAParameters asymmetricKey;
+ private static readonly byte[] secret;
private readonly INonceStore nonceStore = new DatabaseNonceStore();
@@ -23,7 +23,7 @@
secret = new byte[16];
crypto.GetBytes(secret);
- asymmetricKey = new RSACryptoServiceProvider().ExportParameters(true);
+ AsymmetricKey = new RSACryptoServiceProvider().ExportParameters(true);
}
#region Implementation of IAuthorizationServer
@@ -37,7 +37,7 @@
}
public RSAParameters AccessTokenSigningPrivateKey {
- get { return asymmetricKey; }
+ get { return AsymmetricKey; }
}
public IConsumerDescription GetClient(string clientIdentifier) {