@@ -271,7 +271,7 @@ For greater power, though, we can use a builder that ships with `NimbusReactiveJ
271
271
----
272
272
@Bean
273
273
ReactiveJwtDecoder jwtDecoder() {
274
- return NimbusReactiveJwtDecoder.fromJwkSetUri (this.jwkSetUri)
274
+ return NimbusReactiveJwtDecoder.withJwkSetUri (this.jwkSetUri)
275
275
.jwsAlgorithm(RS512).build();
276
276
}
277
277
----
@@ -282,8 +282,8 @@ Calling `jwsAlgorithm` more than once will configure `NimbusReactiveJwtDecoder`
282
282
----
283
283
@Bean
284
284
ReactiveJwtDecoder jwtDecoder() {
285
- return NimbusReactiveJwtDecoder.fromJwkSetUri (this.jwkSetUri)
286
- .jwsAlgorithm(RS512).jwsAlgorithm(EC512 ).build();
285
+ return NimbusReactiveJwtDecoder.withJwkSetUri (this.jwkSetUri)
286
+ .jwsAlgorithm(RS512).jwsAlgorithm(ES512 ).build();
287
287
}
288
288
----
289
289
@@ -293,10 +293,10 @@ Or, you can call `jwsAlgorithms`:
293
293
----
294
294
@Bean
295
295
ReactiveJwtDecoder jwtDecoder() {
296
- return NimbusReactiveJwtDecoder.fromJwkSetUri (this.jwkSetUri)
296
+ return NimbusReactiveJwtDecoder.withJwkSetUri (this.jwkSetUri)
297
297
.jwsAlgorithms(algorithms -> {
298
298
algorithms.add(RS512);
299
- algorithms.add(EC512 );
299
+ algorithms.add(ES512 );
300
300
}).build();
301
301
}
302
302
----
@@ -789,7 +789,7 @@ Or, exposing a `ReactiveOpaqueTokenIntrospector` `@Bean` has the same effect as
789
789
----
790
790
@Bean
791
791
public ReactiveOpaqueTokenIntrospector introspector() {
792
- return new NimbusOpaqueTokenIntrospector (introspectionUri, clientId, clientSecret);
792
+ return new NimbusReactiveOpaqueTokenIntrospector (introspectionUri, clientId, clientSecret);
793
793
}
794
794
----
795
795
@@ -1036,8 +1036,8 @@ JwtIssuerReactiveAuthenticationManagerResolver authenticationManagerResolver = n
1036
1036
("https://idp.example.org/issuerOne", "https://idp.example.org/issuerTwo");
1037
1037
1038
1038
http
1039
- .authorizeRequests(authorize -> authorize
1040
- .anyRequest ().authenticated()
1039
+ .authorizeExchange(exchanges -> exchanges
1040
+ .anyExchange ().authenticated()
1041
1041
)
1042
1042
.oauth2ResourceServer(oauth2 -> oauth2
1043
1043
.authenticationManagerResolver(authenticationManagerResolver)
@@ -1070,8 +1070,8 @@ JwtIssuerReactiveAuthenticationManagerResolver authenticationManagerResolver =
1070
1070
new JwtIssuerReactiveAuthenticationManagerResolver(authenticationManagers::get);
1071
1071
1072
1072
http
1073
- .authorizeRequests(authorize -> authorize
1074
- .anyRequest ().authenticated()
1073
+ .authorizeExchange(exchanges -> exchanges
1074
+ .anyExchange ().authenticated()
1075
1075
)
1076
1076
.oauth2ResourceServer(oauth2 -> oauth2
1077
1077
.authenticationManagerResolver(authenticationManagerResolver)
0 commit comments