for the first point, now in my case since i am using Work or School accounts, so i do not have tables to store the roles and users,, so how i can implement the Roles inside my application? i mean how i can create the roles and users and link users with roles?
Use the Identity External login feature and read the link in my first post.
johnjohn123123
for the second question, i want only certain users inside a database table to be able to login, other wise they will get access denied.. and yes in my case i already have 50 email addresses that should only login to my application...
For the second time, the web is stateless. There is no magical way to know the user before they login.
All-Star
53631 Points
23985 Posts
Re: How i can restrict the Authorize attribute to certain users only, inside my asp.net core mvc...
May 07, 2020 10:14 AM|mgebhard|LINK
Use the Identity External login feature and read the link in my first post.
For the second time, the web is stateless. There is no magical way to know the user before they login.