1
0
mirror of synced 2026-08-04 09:17:02 +00:00

Flatten ServerHttpSecurity.oauth2()

Fixes: gh-5712
This commit is contained in:
Rob Winch
2018-08-21 15:48:21 -05:00
parent 59cdfc7d6e
commit 0dc80aed40
4 changed files with 156 additions and 207 deletions
@@ -40,8 +40,7 @@ public class SecurityConfig {
.and()
.formLogin()
.and()
.oauth2()
.client();
.oauth2Client();
return http.build();
}
@@ -45,10 +45,9 @@ public class SecurityConfig {
.authorizeExchange()
.anyExchange().authenticated()
.and()
.oauth2()
.resourceServer()
.jwt()
.jwkSetUri(jwkSetUri);
.oauth2ResourceServer()
.jwt()
.jwkSetUri(jwkSetUri);
return http.build();
}
@@ -59,10 +58,9 @@ public class SecurityConfig {
.authorizeExchange()
.anyExchange().authenticated()
.and()
.oauth2()
.resourceServer()
.jwt()
.publicKey(publicKey());
.oauth2ResourceServer()
.jwt()
.publicKey(publicKey());
return http.build();
}