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
Expected behavior
The scope being invalid, the Web API should not process anything after calling HttpContext.VerifyUserHasAnyAcceptedScope(scopeRequiredByApi)
Actual behavior
The error is written in the HttpResponse, but the processing in the controller action continues
Possible solution
throw UnauthorizedAccessException(message) like what was done for roles in jennyf/roles for app roles
@jennyf19 : pre-assigning it to you as you've done the roles.
The text was updated successfully, but these errors were encountered:
Which version of Microsoft Identity Web are you using?
0.2.1-preview
Where is the issue?
Repro
In tests\WebAppCallsWebApiCallsGraph\TodoListService\Controllers\TodoListController.cs, change line 22 to be
Runt the Web app and Web API
Expected behavior
The scope being invalid, the Web API should not process anything after calling
HttpContext.VerifyUserHasAnyAcceptedScope(scopeRequiredByApi)
Actual behavior
The error is written in the HttpResponse, but the processing in the controller action continues
Possible solution
throw UnauthorizedAccessException(message) like what was done for roles in jennyf/roles for app roles
@jennyf19 : pre-assigning it to you as you've done the roles.
The text was updated successfully, but these errors were encountered: