summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/ResourceServer.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-03-01 19:38:01 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-03-01 19:38:01 -0800
commitbbebfbf5009526501d4a432c0ce7b0f8d325818c (patch)
treea77971c8ced99bac678e5f520780284aa5d337ef /src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/ResourceServer.cs
parent9ffd411fa2115f5cdc4d2c0a473e55b0c82f7dc1 (diff)
parent3ed1a19d2ba373869e5d1aa285726f3b5b99d0c2 (diff)
downloadDotNetOpenAuth-bbebfbf5009526501d4a432c0ce7b0f8d325818c.zip
DotNetOpenAuth-bbebfbf5009526501d4a432c0ce7b0f8d325818c.tar.gz
DotNetOpenAuth-bbebfbf5009526501d4a432c0ce7b0f8d325818c.tar.bz2
Merge branch 'master' into webpages
Conflicts: src/DotNetOpenAuth.sln
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/ResourceServer.cs')
-rw-r--r--src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/ResourceServer.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/ResourceServer.cs b/src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/ResourceServer.cs
index 927a6ed..a614219 100644
--- a/src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/ResourceServer.cs
+++ b/src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/ResourceServer.cs
@@ -1,6 +1,6 @@
//-----------------------------------------------------------------------
-// <copyright file="ResourceServer.cs" company="Andrew Arnott">
-// Copyright (c) Andrew Arnott. All rights reserved.
+// <copyright file="ResourceServer.cs" company="Outercurve Foundation">
+// Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
@@ -17,6 +17,7 @@ namespace DotNetOpenAuth.OAuth2 {
using System.Text.RegularExpressions;
using System.Web;
using ChannelElements;
+ using DotNetOpenAuth.OAuth.ChannelElements;
using Messages;
using Messaging;
@@ -81,9 +82,9 @@ namespace DotNetOpenAuth.OAuth2 {
return null;
}
- throw ErrorUtilities.ThrowProtocol("Bad access token");
+ throw ErrorUtilities.ThrowProtocol(OAuth2Strings.InvalidAccessToken);
} else {
- var response = new UnauthorizedResponse(new ProtocolException("Missing access token"));
+ var response = new UnauthorizedResponse(new ProtocolException(OAuth2Strings.MissingAccessToken));
userName = null;
scope = null;
@@ -111,7 +112,7 @@ namespace DotNetOpenAuth.OAuth2 {
string username;
HashSet<string> scope;
var result = this.VerifyAccess(httpRequestInfo, out username, out scope);
- principal = result == null ? new OAuth.ChannelElements.OAuthPrincipal(username, scope != null ? scope.ToArray() : new string[0]) : null;
+ principal = result == null ? new OAuthPrincipal(username, scope != null ? scope.ToArray() : new string[0]) : null;
return result;
}