summaryrefslogtreecommitdiffstats
path: root/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-10-06 12:26:16 -0700
committerAndrew <andrewarnott@gmail.com>2008-10-06 12:26:16 -0700
commit1890e5d43aca89279f3bd19367412095abd8fc3b (patch)
treeef19c331e3d1727d349b2a747d40fcc18447310a /samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
parentc4198363f4f88a54c65ba22ef7a9cd97a35e743b (diff)
downloadDotNetOpenAuth-1890e5d43aca89279f3bd19367412095abd8fc3b.zip
DotNetOpenAuth-1890e5d43aca89279f3bd19367412095abd8fc3b.tar.gz
DotNetOpenAuth-1890e5d43aca89279f3bd19367412095abd8fc3b.tar.bz2
StyleCop clean.
Diffstat (limited to 'samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs')
-rw-r--r--samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs b/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
index 4c461e8..02118f8 100644
--- a/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
+++ b/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
@@ -22,6 +22,7 @@ public class OAuthAuthorizationManager : ServiceAuthorizationManager {
var auth = sp.GetProtectedResourceAuthorization(httpDetails, requestUri);
if (auth != null) {
var accessToken = Global.DataContext.OAuthTokens.Single(token => token.Token == auth.AccessToken);
+
// Only allow this method call if the access token scope permits it.
string[] scopes = accessToken.Scope.Split('|');
if (scopes.Contains(operationContext.IncomingMessageHeaders.Action)) {