Skip to content

Commit 48f60e2

Browse files
authored
Update README.md
1 parent 4cc8e81 commit 48f60e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2-Call-OwnApi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ The relevant code for the Web API is in the `Startup.cs` class. We are using the
320320
&& !context.Principal.Claims.Any(y => y.Type == ClaimConstants.Roles)
321321
&& !context.Principal.Claims.Any(y => y.Type == ClaimConstants.Role))
322322
{
323-
throw new UnauthorizedAccessException(ErrorMessage.NeitherScopeOrRolesClaimFoundInToken);
323+
throw new UnauthorizedAccessException("Neither scope or roles claim were found in the bearer token.");
324324
}
325325

326326
await tokenValidatedHandler(context).ConfigureAwait(false);

0 commit comments

Comments
 (0)