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
Make Test.razor page. And write @attribute [Authorize(Roles = "AnyRole")].
Debug project.
Login any account. (Accounts that do not have the Role specified in attirubute)
Access to /Test via Sidebar2 component.
Expected behavior
The login page appears even though you are already logged in.
Access denied page is displayed when accessed from navbar of sample or from a direct link (use browsers address bar).
Describe the bug
Accessing a page with the Authorize attribute set via the Sidebar2 component will display the Login page. (Not on Access denied page)
To Reproduce
Test.razor
page. And write@attribute [Authorize(Roles = "AnyRole")]
.Expected behavior
The login page appears even though you are already logged in.
Access denied page is displayed when accessed from navbar of sample or from a direct link (use browsers address bar).
Expect: http://localhost:5002/Account/AccessDenied?ReturnUrl=%2FTest
Actual: http://localhost:5002/Account/Login?returnUrl=http%3A%2F%2Flocalhost%3A5002%2FTest
Versions (please complete the following information):
Sample code
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: