<security:http entry-point-ref="casEntryPoint" use-expressions="true">
<security:intercept-url pattern="/**" access="hasAnyRole(All roles)" />
<security:intercept-url pattern="/unauthorized" access="hasRole('ROLE_UNAUTHORIZED')" />
<security:intercept-url pattern="/unauthorized" access="!hasAuthority('ROLE_SUPER_ADMIN')" />
</security:http>
I want to restrict URL from specific roles.
<security:intercept-url pattern="/unauthorized" access="!hasAuthority('ROLE_SUPER_ADMIN')" />
I have tried but not working.
Refer image, I logged in as admin still I can access the /unauthorized from Url bar.