DotNetOpenAuth.OAuth2.AuthorizationServer.RejectAuthorizationRequest C# (CSharp) Method

RejectAuthorizationRequest() public method

Rejects an authorization request and sends an HTTP response to the user agent to redirect the user back to the Client.
public RejectAuthorizationRequest ( EndUserAuthorizationRequest authorizationRequest, Uri callback = null ) : void
authorizationRequest EndUserAuthorizationRequest The authorization request to disapprove.
callback Uri The Client callback URL to use when formulating the redirect to send the user agent back to the Client.
return void
		public void RejectAuthorizationRequest(EndUserAuthorizationRequest authorizationRequest, Uri callback = null) {
			Requires.NotNull(authorizationRequest, "authorizationRequest");

			var response = this.PrepareRejectAuthorizationRequest(authorizationRequest, callback);
			this.Channel.Respond(response);
		}