hasRole('ROLE_NAME') does not work with AADAppRoleStatelessAuthenticationFilter

kamal amrati 1 Reputation point
2021-03-19T13:49:28.737+00:00

when working with AADAppRoleStatelessAuthenticationFilter in Spring Security Config the antMatcher.haRole() is not working and gives access to all authenticated user regardless of their role in the AD manifest.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,520 questions
{count} votes