From 7ba6d303b40a78c2563556bd6f43f68cdabdaf0d Mon Sep 17 00:00:00 2001 From: Brian Delgado Date: Fri, 11 Jan 2019 00:58:33 -0800 Subject: [PATCH] Claim values are now being shown when constructing. ClaimValueNotAuthorisedError. (#711) --- src/Ocelot/Authorisation/ClaimsAuthoriser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ocelot/Authorisation/ClaimsAuthoriser.cs b/src/Ocelot/Authorisation/ClaimsAuthoriser.cs index d67c4d5f..8fd910c8 100644 --- a/src/Ocelot/Authorisation/ClaimsAuthoriser.cs +++ b/src/Ocelot/Authorisation/ClaimsAuthoriser.cs @@ -32,7 +32,7 @@ namespace Ocelot.Authorisation if (!authorised) { return new ErrorResponse(new ClaimValueNotAuthorisedError( - $"claim value: {values.Data} is not the same as required value: {required.Value} for type: {required.Key}")); + $"claim value: {string.Join(", ", values.Data)} is not the same as required value: {required.Value} for type: {required.Key}")); } } else