I just want to know if I have in startup
options.AddPolicy("PTW", policy => policy.RequireRole("Management", "Safety", "PTWIssuer", "PTWReceiver", "PTWIsoCert"));
is similar with having in View
[Authorize(Policy = "PTW")]
[Authorize(Roles = "Management,Safety,PTWIssuer,PTWReceiver,PTWIsoCert")]
so it's enough only in startup and in view to keep only first line?

Sachin SinghPosted Aug 24, 2021, 2:11 PM
Sachin SinghPosted Aug 24, 2021, 2:06 PM
Marius VasilePosted Aug 24, 2021, 1:56 PM
Sachin SinghPosted Aug 24, 2021, 10:37 AM