I have a spring boot application with spring security. It works fine.
- I call HTTP://localhost:8080/test request
AuthenticationProvider
catches this request and authenticates the user.MyController
starts working
Now I need to add license checking to this chain.
- I call HTTP://localhost:8080/test request
AuthenticationProvider
catches this request and authenticates the user.- Somebody checks the license and redirect to the next step or returns an exception
- if the 3-th step is a success -
MyController
starts working
I need to understand who is Somebody on 3-th step - Interceptor, Filter, or something else?