How to configure enabling or disabling of access for non authenticated users?
I have a spring application with using of spring-security. Some of my rest methods are available for non authenticated users. But I'd like to add condition on making them available just for authenticated users if a special field is_enable in data base table has true value. If I save this field with false value those methods are available for everyone again.
My first thoughts were about creating @Service class that will check data base field is_enable value and if user is authenticated. If...