summaryrefslogtreecommitdiffstats
path: root/src/OAuth/OAuthAuthorizationServer/Controllers
diff options
context:
space:
mode:
Diffstat (limited to 'src/OAuth/OAuthAuthorizationServer/Controllers')
-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();