Flatten HttpSecurity.oauth2()

Fixes gh-5715
This commit is contained in:
Joe Grandja
2018-08-22 05:58:04 -04:00
parent 0f89e59707
commit ff6e1232c8
7 changed files with 86 additions and 200 deletions

View File

@@ -36,10 +36,9 @@ public class OAuth2ResourceServerSecurityConfiguration extends WebSecurityConfig
.antMatchers("/message/**").access("hasAuthority('SCOPE_message:read')")
.anyRequest().authenticated()
.and()
.oauth2()
.resourceServer()
.jwt()
.jwkSetUri(this.jwkSetUri);
.oauth2ResourceServer()
.jwt()
.jwkSetUri(this.jwkSetUri);
// @formatter:on
}
}