summaryrefslogtreecommitdiffstats
path: root/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2011-06-21 20:51:34 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2011-06-21 20:51:34 -0700
commitc1edc04e74e668425cd4b880b110011775395bd9 (patch)
tree47786fa6496f5a4dd6355a38545f051784649091 /samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs
parentf6581ea68f421395bba0b3c2f7d72708cf72979c (diff)
downloadDotNetOpenAuth-c1edc04e74e668425cd4b880b110011775395bd9.zip
DotNetOpenAuth-c1edc04e74e668425cd4b880b110011775395bd9.tar.gz
DotNetOpenAuth-c1edc04e74e668425cd4b880b110011775395bd9.tar.bz2
Finished implicit grant sample. Yay.
Diffstat (limited to 'samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs')
-rw-r--r--samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs b/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs
index 0c1953d..6dc5b7d 100644
--- a/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs
+++ b/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs
@@ -50,7 +50,7 @@
};
// Only allow this method call if the access token scope permits it.
- return principal.IsInRole(operationContext.IncomingMessageHeaders.Action);
+ return principal.IsInRole(operationContext.IncomingMessageHeaders.Action ?? operationContext.IncomingMessageHeaders.To.AbsolutePath);
} else {
return false;
}