You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewUnauthorizedAccessException("Neither scope or roles claim was found in the bearer token.");
356
+
}
357
+
358
+
awaitTask.FromResult(0);
359
+
};
360
+
```
361
+
362
+
Letssayyouwanttoaugmentthecurrent `ClaimsPrincipal` byaddingclaimstoit, andyouhavetodoiton `OnTokenValidated `, howeveryoudon't want to lose this `UnauthorizedAccessException` check existing in the event. To do so, on your `Startup.cs` you would have:
0 commit comments