Open endymuhardin opened 7 years ago
Could you fix it? I have also encountered the same problem.
Any updates on this? I am facing the same problem.
I am facing the same problem too. I'm using Spring Boot 1.5.2.RELEASE.
Same problem here. Spring Boot 1.5.6.RELEASE.
Same problem here. 1.5.8.RELEASE. Cannot find anyway to put them together using JWT and RSA keys. I think one override the configuration of the other
Hi guys,
I found the problem and it is working now for me. I think it is kind of what i said before so you need to add this annotation on top of your WebSecurityConfigurerAdapter:
@Configuration @Order(SecurityProperties.ACCESS_OVERRIDE_ORDER) class WebSecurityConfiguration extends WebSecurityConfigurerAdapter { ...
Regards Jose
I am creating a Spring Boot app containing both Authorization Server and Resource Server with the following configuration
I also have a Controller
After access token is obtained (through usual login process and exchanging authcode), the controller can be accessed if the token is supplied in request parameter as such
http://localhost:20000/api/user?access_token=blablabla-yadda-yadda-yadda
However, if access token is used in authorization header as such
It will return 301 redirect to login page.
My suspicion is the
@EnableResourceServer
somehow either fail to register or misconfigureOAuth2AuthenticationProcessingFilter
to conflict withBasicAuthenticationFilter
.Am I correct? How can I debug the exact sequence of installed filter? The debug log (I suppose) only display filters hit by request, not all installed/active filters.
Pls advise, thx