mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 14:02:49 +08:00
Claim values are now being shown when constructing. ClaimValueNotAuthorisedError. (#711)
This commit is contained in:
parent
11a2d13f18
commit
7ba6d303b4
@ -32,7 +32,7 @@ namespace Ocelot.Authorisation
|
||||
if (!authorised)
|
||||
{
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user