We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cc8e81 commit 48f60e2Copy full SHA for 48f60e2
2-Call-OwnApi/README.md
@@ -320,7 +320,7 @@ The relevant code for the Web API is in the `Startup.cs` class. We are using the
320
&& !context.Principal.Claims.Any(y => y.Type == ClaimConstants.Roles)
321
&& !context.Principal.Claims.Any(y => y.Type == ClaimConstants.Role))
322
{
323
- throw new UnauthorizedAccessException(ErrorMessage.NeitherScopeOrRolesClaimFoundInToken);
+ throw new UnauthorizedAccessException("Neither scope or roles claim were found in the bearer token.");
324
}
325
326
await tokenValidatedHandler(context).ConfigureAwait(false);
0 commit comments