Employees have a claim named Employee in Azure AD and Contractors do not have this claim. Identify the attribute you should add to BenefitsController class, a controller class you need to ensure that only employees can access.
A.[SecurityRole(Policy="Employeeld")]
B.[Authorize(Policy="EmployeeOnly")]
C.[SecurityRole(Policy="EmployeeOnly")]
D.[Authorize(Policy="Employeeld")]
Answer:B
Employees have a claim named Employee in Azure AD and Contractors do not have this claim. Identify the attribute you should add to BenefitsController class, a controller class you need to ensure that only employees can access.
A.[SecurityRole(Policy="Employeeld")] B.[Authorize(Policy="EmployeeOnly")] C.[SecurityRole(Policy="EmployeeOnly")] D.[Authorize(Policy="Employeeld")]