Skip to content

Commit

Permalink
Merge pull request #11929 from ruddell/uaa-restore-prepost-security-a…
Browse files Browse the repository at this point in the history
…nnotation

restore EnableGlobalMethodSecurity for apps using UAA auth
  • Loading branch information
pascalgrimaud committed Jun 12, 2020
2 parents 630c342 + 34b794f commit d4880e9
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -372,6 +372,7 @@ import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.cloud.client.loadbalancer.RestTemplateCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
Expand All @@ -388,6 +389,7 @@ import org.springframework.web.client.RestTemplate;

@Configuration
@EnableResourceServer
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
public class SecurityConfiguration extends ResourceServerConfigurerAdapter {
private final OAuth2Properties oAuth2Properties;

Expand Down

0 comments on commit d4880e9

Please sign in to comment.