Claim values are now being shown when constructing. ClaimValueNotAuthorisedError. (#711)

This commit is contained in:
Brian Delgado 2019-01-11 00:58:33 -08:00 committed by Thiago Loureiro
parent 11a2d13f18
commit 7ba6d303b4

View File

@ -32,7 +32,7 @@ namespace Ocelot.Authorisation
if (!authorised) if (!authorised)
{ {
return new ErrorResponse<bool>(new ClaimValueNotAuthorisedError( return new ErrorResponse<bool>(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 else