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
I followed instructions for the \4-WebApp-your-API\4-1-MyOrg, 1st authentication was failing as you can notice in the snapshot 1
I added another permission as ToDoList.Write only, restarted the service and the web app, after chosing my Azure user I get the following error as you can see in the 2nd snapshot
Additional context/ Error codes / Screenshots
In ther terminal I am getting
info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
Authorization failed. These requirements were not met:
DenyAnonymousAuthorizationRequirement: Requires an authenticated user.
info: Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler[12]
AuthenticationScheme: OpenIdConnect was challenged.
info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/2 GET https://localhost:44321/ - - - 302 0 - 501.1501ms
You can enable Middleware diagnostics by uncommenting the following lines
You can enable personally identifiable information in your exceptions to get more information in the open id connect middleware see Seeing [PII is hidden] in log messages
This issue is for a: (mark with an
x
)The issue was found for the following scenario:
Please add an 'x' for the scenario(s) where you found an issue
Repro-ing the issue
Repro steps
I followed instructions for the \4-WebApp-your-API\4-1-MyOrg, 1st authentication was failing as you can notice in the snapshot 1
I added another permission as ToDoList.Write only, restarted the service and the web app, after chosing my Azure user I get the following error as you can see in the 2nd snapshot
Additional context/ Error codes / Screenshots
In ther terminal I am getting
info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
Authorization failed. These requirements were not met:
DenyAnonymousAuthorizationRequirement: Requires an authenticated user.
info: Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler[12]
AuthenticationScheme: OpenIdConnect was challenged.
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/2 GET https://localhost:44321/ - - - 302 0 - 501.1501ms
OS and Version?
Versions
Attempting to troubleshooting yourself:
The text was updated successfully, but these errors were encountered: