diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs b/src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs index 4260b48..c9ab6cb 100644 --- a/src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs +++ b/src/OAuth/OAuthAuthorizationServer/Controllers/OAuthController.cs @@ -84,6 +84,9 @@ 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"; } return this.authorizationServer.Channel.PrepareResponse(response).AsActionResult(); |