summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-03 16:53:15 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-03 16:53:15 -0800
commit60ca0442ebf684b8414c5cb0dbf91c5b916f1188 (patch)
tree412b5e0c9febaf8f7aad7eb24870292394a61f07
parenta57b51806ceebaa64db730809d6d7fd07c5b42ce (diff)
downloadDotNetOpenAuth-60ca0442ebf684b8414c5cb0dbf91c5b916f1188.zip
DotNetOpenAuth-60ca0442ebf684b8414c5cb0dbf91c5b916f1188.tar.gz
DotNetOpenAuth-60ca0442ebf684b8414c5cb0dbf91c5b916f1188.tar.bz2
Adds an explicit role requirement for WebAPI clients.
-rw-r--r--samples/OAuth2ProtectedWebApi/Controllers/ValuesController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/OAuth2ProtectedWebApi/Controllers/ValuesController.cs b/samples/OAuth2ProtectedWebApi/Controllers/ValuesController.cs
index dd07835..1c84c99 100644
--- a/samples/OAuth2ProtectedWebApi/Controllers/ValuesController.cs
+++ b/samples/OAuth2ProtectedWebApi/Controllers/ValuesController.cs
@@ -6,7 +6,7 @@
using System.Net.Http;
using System.Web.Http;
- [Authorize]
+ [Authorize(Roles = "Values")]
public class ValuesController : ApiController {
// GET api/values
public IEnumerable<string> Get() {