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
Describe the bug
Multiple queries were made to the database to authorize the user.
To Reproduce
Steps to reproduce the behavior:
Add multiple role.
Add this attribut to handler. [Authorize(Roles = "Administrator2,Administrator3,Administrator4,Administrator2,Administrator3,Administrator4,Administrator2,Administrator3,Administrator4,Administrator2,Administrator3,Administrator4")]
Request with user that have role Administrator.
I replace sql database with mysql database.
I add miniProfiler to the project and check the generated queries.
For each role, it creates a database query.
Expected behavior
Make a maximum of 2 connections.
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
Multiple queries were made to the database to authorize the user.
To Reproduce
Steps to reproduce the behavior:
[Authorize(Roles = "Administrator2,Administrator3,Administrator4,Administrator2,Administrator3,Administrator4,Administrator2,Administrator3,Administrator4,Administrator2,Administrator3,Administrator4")]
Administrator
.I replace sql database with mysql database.
I add miniProfiler to the project and check the generated queries.
For each role, it creates a database query.
Expected behavior
Make a maximum of 2 connections.
Screenshots
The text was updated successfully, but these errors were encountered: