You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 31, 2022. It is now read-only.
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
My suspicion is the @EnableResourceServer somehow either fail to register or misconfigure OAuth2AuthenticationProcessingFilter to conflict with BasicAuthenticationFilter.
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
The text was updated successfully, but these errors were encountered:
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 { ...
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
The text was updated successfully, but these errors were encountered: