summaryrefslogtreecommitdiffstats
path: root/src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs
diff options
context:
space:
mode:
authorDavid Christiansen <DavidChristiansen@users.noreply.github.com>2014-12-08 15:31:10 +0000
committerDavid Christiansen <DavidChristiansen@users.noreply.github.com>2014-12-08 15:31:10 +0000
commit1c340ebc033691e69c36d3885c5fe6b215cc37ce (patch)
treeb25b96e0f8c26956bf4b858f440f6dbd0d591d50 /src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs
parent92ef68e33b715ecdd1d42ee33ce56e9ea295f4f7 (diff)
parent51b3d1681795475eeadeb946884ec2d871edf9b9 (diff)
downloadDotNetOpenAuth.Samples-1c340ebc033691e69c36d3885c5fe6b215cc37ce.zip
DotNetOpenAuth.Samples-1c340ebc033691e69c36d3885c5fe6b215cc37ce.tar.gz
DotNetOpenAuth.Samples-1c340ebc033691e69c36d3885c5fe6b215cc37ce.tar.bz2
Merge pull request #20 from DavidChristiansen/master
Fixing build
Diffstat (limited to 'src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs')
-rw-r--r--src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs b/src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs
index c9ab6cb..8c3760b 100644
--- a/src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs
+++ b/src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs
@@ -1,4 +1,6 @@
-namespace OAuthAuthorizationServer.Controllers {
+using DotNetOpenAuth.OAuth2.Messages;
+
+namespace OAuthAuthorizationServer.Controllers {
using System;
using System.Collections.Generic;
using System.Linq;
@@ -84,9 +86,11 @@
response = this.authorizationServer.PrepareApproveAuthorizationRequest(pendingRequest, User.Identity.Name);
} else {
response = this.authorizationServer.PrepareRejectAuthorizationRequest(pendingRequest);
- var errorResponse = response as EndUserAuthorizationFailedResponse;
- errorResponse.Error = "accesss_denied"; // see http://tools.ietf.org/id/draft-ietf-oauth-v2-31.html#rfc.section.4.1.2.1 for valid values
- errorResponse.Description = "The resource owner or authorization server denied the request";
+ //var errorResponse = response as EndUserAuthorizationFailedResponse;
+ //if (errorResponse != null) {
+ // errorResponse.Error = "accesss_denied"; // see http://tools.ietf.org/id/draft-ietf-oauth-v2-31.html#rfc.section.4.1.2.1 for valid values
+ // errorResponse.ErrorDescription = "The resource owner or authorization server denied the request";
+ //}
}
return this.authorizationServer.Channel.PrepareResponse(response).AsActionResult();