From f73a0a089bd31867b6b9e91931f362e9a087bbf2 Mon Sep 17 00:00:00 2001 From: Joe DeCock Date: Mon, 13 Nov 2023 16:35:27 -0600 Subject: [PATCH] Fix PAR exception message --- src/IdentityServer/Endpoints/PushedAuthorizationEndpoint.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IdentityServer/Endpoints/PushedAuthorizationEndpoint.cs b/src/IdentityServer/Endpoints/PushedAuthorizationEndpoint.cs index c7571c367..9cacd63d1 100644 --- a/src/IdentityServer/Endpoints/PushedAuthorizationEndpoint.cs +++ b/src/IdentityServer/Endpoints/PushedAuthorizationEndpoint.cs @@ -93,7 +93,7 @@ public async Task 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."); } }