summaryrefslogtreecommitdiffstats
path: root/src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs
diff options
context:
space:
mode:
authorDavid Christiansen <david.christiansen@civil.lmco.com>2014-12-08 14:55:22 +0000
committerDavid Christiansen <david.christiansen@civil.lmco.com>2014-12-08 15:00:22 +0000
commitac23e716e28c84b3b97935d08e7984716a892917 (patch)
treee0c8fce4f41acadac9b96f2dbc8bc6c7d74768d1 /src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs
parent92ef68e33b715ecdd1d42ee33ce56e9ea295f4f7 (diff)
downloadDotNetOpenAuth.Samples-ac23e716e28c84b3b97935d08e7984716a892917.zip
DotNetOpenAuth.Samples-ac23e716e28c84b3b97935d08e7984716a892917.tar.gz
DotNetOpenAuth.Samples-ac23e716e28c84b3b97935d08e7984716a892917.tar.bz2
Fixing build post faulty PR acceptance. MVC Upgrade
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();