Remove exceptions from lambda security configuration
Fixes: gh-7128
This commit is contained in:
committed by
Rob Winch
parent
b55322b2cb
commit
0b4502b2c5
+1
-1
@@ -53,7 +53,7 @@ public class OAuth2ResourceServerSecurityConfiguration extends WebSecurityConfig
|
||||
}
|
||||
|
||||
@Bean
|
||||
JwtDecoder jwtDecoder() throws Exception {
|
||||
JwtDecoder jwtDecoder() {
|
||||
return NimbusJwtDecoder.withPublicKey(this.key).build();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public class WebfluxFormSecurityConfig {
|
||||
}
|
||||
|
||||
@Bean
|
||||
SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) throws Exception {
|
||||
SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
|
||||
http
|
||||
.authorizeExchange(exchanges ->
|
||||
exchanges
|
||||
|
||||
@@ -42,7 +42,7 @@ public class WebfluxX509Application {
|
||||
}
|
||||
|
||||
@Bean
|
||||
public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) throws Exception {
|
||||
public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {
|
||||
// @formatter:off
|
||||
http
|
||||
.x509(withDefaults())
|
||||
|
||||
Reference in New Issue
Block a user