How to enable oAuth2 resource server feature in spring boot 2.0.5.RELEASE?

26 views Asked by At

I want to integrate oAuth2 resource server feature in my spring boot 2.0.5.RELEASE application in order to protect api access with valid token issued by my authorization server keycloak.

Then to configure my application'security, i created a SecurityConfig class that extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter. So when i override configure(HttpSecurity http) method of WebSecurityConfigurerAdapter class, i want to use inside this method http.oauth2ResourceServer(), but this method oauth2ResourceServer() isn't available in this instance of httpSecurity. So, please can you help to solve this issue ?

0

There are 0 answers