Skip to content

Commit

Permalink
Fix PAR exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock authored Nov 13, 2023
1 parent 0574757 commit f73a0a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public async Task<IEndpointResult> ProcessAsync(HttpContext context)
Telemetry.Metrics.PushedAuthorizationRequestFailure(parValidationResult.ValidatedRequest.ClientId, fail.Error);
return new PushedAuthorizationErrorResult(fail);
default:
throw new Exception("Can't happen");
throw new Exception("Unexpected pushed authorization response. The result of the pushed authorization response generator should be either a PushedAuthorizationSuccess or PushedAuthorizationFailure.");
}
}

Expand Down

0 comments on commit f73a0a0

Please sign in to comment.