summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-12-23 14:14:56 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-12-23 14:14:56 -0800
commit60267f651eed355310ded6f3b2ea6dea959669e6 (patch)
treedf35bfcbf7c54e689038b92fced6ec2b74851ddf
parent45775797c5f50dc56370c75c3244ea0e83ab4832 (diff)
downloadDotNetOpenAuth-60267f651eed355310ded6f3b2ea6dea959669e6.zip
DotNetOpenAuth-60267f651eed355310ded6f3b2ea6dea959669e6.tar.gz
DotNetOpenAuth-60267f651eed355310ded6f3b2ea6dea959669e6.tar.bz2
Fixed StyleCop build breaks in release configuration.OAuth2CTP2
-rw-r--r--projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs2
-rw-r--r--projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs b/projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs
index 6ac2977..77cd4da 100644
--- a/projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs
+++ b/projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs
@@ -34,7 +34,7 @@ namespace RelyingPartyLogic {
var tokenAnalyzer = new SpecialAccessTokenAnalyzer(OAuthAuthorizationServer.AsymmetricKey, OAuthAuthorizationServer.AsymmetricKey);
var resourceServer = new ResourceServer(tokenAnalyzer);
-
+
try {
IPrincipal principal;
var errorResponse = resourceServer.VerifyAccess(httpDetails, requestUri, out principal);
diff --git a/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs b/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs
index 8d0bdce..ae032b7 100644
--- a/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs
+++ b/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs
@@ -159,7 +159,7 @@ namespace RelyingPartyLogic {
auth.CreatedOnUtc <= issuedUtc &&
(!auth.ExpirationDateUtc.HasValue || auth.ExpirationDateUtc.Value >= DateTime.UtcNow) &&
auth.User.AuthenticationTokens.Any(token => token.ClaimedIdentifier == username)
- select auth.Scope;
+ select auth.Scope;
if (!grantedScopeStrings.Any()) {
// No granted authorizations prior to the issuance of this token, so it must have been revoked.