Avatar of Software Programmer
Software Programmer
 asked on

RequestHandlerInterceptor or AccessDecisionVoter which gets called first

RequestHandlerInterceptor or AccessDecisionVoter which gets called first

I'm working on spring boot application and would like to know RequestHandlerInterceptor or AccessDecisionVoter which gets invoked first
JavaWeb DevelopmentWeb ApplicationsJSPWeb Frameworks

Avatar of undefined
Last Comment
girionis

8/22/2022 - Mon
girionis

A HandlerInterceptor should be invoked first.
Software Programmer

ASKER
Which one would be the best place to inject the granted authorities for a user ??? HandlerInterceptor or AccessDecisionVoter
girionis

It depends where you do your authentication/authorisation.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Software Programmer

ASKER
I'm doing the authorization in the HandlerInterceptor. Is it right to do the authorization in HandlerInterceptor ?
ASKER CERTIFIED SOLUTION
girionis

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.