summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-06-07 21:29:29 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-06-07 21:29:29 -0700
commitb3a35b9ae0823dda35bb07b404c9c09fec09402a (patch)
treeb58aaf62cf23c1e2c06a0f1d5f13ab899fff6a04 /samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs
parent8ed398b9151c8fc140379756bd3bd546a46daf05 (diff)
downloadDotNetOpenAuth-b3a35b9ae0823dda35bb07b404c9c09fec09402a.zip
DotNetOpenAuth-b3a35b9ae0823dda35bb07b404c9c09fec09402a.tar.gz
DotNetOpenAuth-b3a35b9ae0823dda35bb07b404c9c09fec09402a.tar.bz2
Lots of StyleCop work, and one bug fix (can you find it? <g>)
Diffstat (limited to 'samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs')
-rw-r--r--samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs b/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs
index a48288a..92038bd 100644
--- a/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs
+++ b/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs
@@ -7,10 +7,9 @@
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Security;
- using DotNetOpenAuth;
using DotNetOpenAuth.OAuth;
- using DotNetOpenAuth.OAuthWrap;
using DotNetOpenAuth.OAuth.ChannelElements;
+ using DotNetOpenAuth.OAuthWrap;
/// <summary>
/// A WCF extension to authenticate incoming messages using OAuth.
@@ -28,7 +27,7 @@
Uri requestUri = operationContext.RequestContext.RequestMessage.Properties["OriginalHttpRequestUri"] as Uri;
try {
- var principal = VerifyOAuth2(httpDetails, requestUri);
+ var principal = this.VerifyOAuth2(httpDetails, requestUri);
if (principal != null) {
var policy = new OAuthPrincipalAuthorizationPolicy(principal);
var policies = new List<IAuthorizationPolicy> {
@@ -77,8 +76,8 @@
// we use the same public/private key.
var resourceServer = new ResourceServer(
new StandardAccessTokenAnalyzer(
- OAuth2AuthorizationServer.asymmetricKey,
- OAuth2AuthorizationServer.asymmetricKey));
+ OAuth2AuthorizationServer.AsymmetricKey,
+ OAuth2AuthorizationServer.AsymmetricKey));
string username, scope;
var error = resourceServer.VerifyAccess(new DotNetOpenAuth.Messaging.HttpRequestInfo(httpDetails, requestUri), out username, out scope);