diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-03 16:36:51 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-03 16:36:51 -0800 |
commit | a57b51806ceebaa64db730809d6d7fd07c5b42ce (patch) | |
tree | abbe0666f8ee621b72c339d341b45b86e1346cb5 /samples/OAuth2ProtectedWebApi/Controllers/ValuesController.cs | |
parent | 475b47ab8eaa23e064763b05539fa750accebfdc (diff) | |
download | DotNetOpenAuth-a57b51806ceebaa64db730809d6d7fd07c5b42ce.zip DotNetOpenAuth-a57b51806ceebaa64db730809d6d7fd07c5b42ce.tar.gz DotNetOpenAuth-a57b51806ceebaa64db730809d6d7fd07c5b42ce.tar.bz2 |
Adds OpenID RP to WebAPI sample so it's a real login.
Diffstat (limited to 'samples/OAuth2ProtectedWebApi/Controllers/ValuesController.cs')
-rw-r--r-- | samples/OAuth2ProtectedWebApi/Controllers/ValuesController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/OAuth2ProtectedWebApi/Controllers/ValuesController.cs b/samples/OAuth2ProtectedWebApi/Controllers/ValuesController.cs index 601d26e..dd07835 100644 --- a/samples/OAuth2ProtectedWebApi/Controllers/ValuesController.cs +++ b/samples/OAuth2ProtectedWebApi/Controllers/ValuesController.cs @@ -10,7 +10,7 @@ public class ValuesController : ApiController { // GET api/values public IEnumerable<string> Get() { - return new string[] { "value1", "value2" }; + return new string[] { "value1", this.User.Identity.Name, "value2" }; } // GET api/values/5 |