David Parks
David Parks

Reputation: 32071

Spring MVC: How to deny access to any page that doesn't explicitly have a role assigned

I want to ensure all resources have security permissions set, even if that's declaring the resource public (ROLE_ANONYMOUS).

How can I configure Spring MVC to deny any page that has no permissions assigned?

Upvotes: 0

Views: 298

Answers (1)

user683887
user683887

Reputation: 1280

Have you tried putting a rule at the end of your file mapping /** to the highest possible role in your scheme?

Upvotes: 1

Related Questions