111
111
import org .springframework .security .oauth2 .server .resource .authentication .JwtReactiveAuthenticationManager ;
112
112
import org .springframework .security .oauth2 .server .resource .authentication .OpaqueTokenReactiveAuthenticationManager ;
113
113
import org .springframework .security .oauth2 .server .resource .authentication .ReactiveJwtAuthenticationConverter ;
114
- import org .springframework .security .oauth2 .server .resource .introspection .NimbusReactiveOpaqueTokenIntrospector ;
115
114
import org .springframework .security .oauth2 .server .resource .introspection .ReactiveOpaqueTokenAuthenticationConverter ;
116
115
import org .springframework .security .oauth2 .server .resource .introspection .ReactiveOpaqueTokenIntrospector ;
116
+ import org .springframework .security .oauth2 .server .resource .introspection .SpringReactiveOpaqueTokenIntrospector ;
117
117
import org .springframework .security .oauth2 .server .resource .web .access .server .BearerTokenServerAccessDeniedHandler ;
118
118
import org .springframework .security .oauth2 .server .resource .web .server .BearerTokenServerAuthenticationEntryPoint ;
119
119
import org .springframework .security .oauth2 .server .resource .web .server .authentication .ServerBearerTokenAuthenticationConverter ;
298
298
* @author Parikshit Dutta
299
299
* @author Ankur Pathak
300
300
* @author Alexey Nesterov
301
+ * @author Yanming Zhou
301
302
* @since 5.0
302
303
*/
303
304
public class ServerHttpSecurity {
@@ -5443,8 +5444,11 @@ private OpaqueTokenSpec() {
5443
5444
public OpaqueTokenSpec introspectionUri (String introspectionUri ) {
5444
5445
Assert .hasText (introspectionUri , "introspectionUri cannot be empty" );
5445
5446
this .introspectionUri = introspectionUri ;
5446
- this .introspector = () -> new NimbusReactiveOpaqueTokenIntrospector (this .introspectionUri ,
5447
- this .clientId , this .clientSecret );
5447
+ this .introspector = () -> SpringReactiveOpaqueTokenIntrospector
5448
+ .withIntrospectionUri (this .introspectionUri )
5449
+ .clientId (this .clientId )
5450
+ .clientSecret (this .clientSecret )
5451
+ .build ();
5448
5452
return this ;
5449
5453
}
5450
5454
@@ -5459,8 +5463,11 @@ public OpaqueTokenSpec introspectionClientCredentials(String clientId, String cl
5459
5463
Assert .notNull (clientSecret , "clientSecret cannot be null" );
5460
5464
this .clientId = clientId ;
5461
5465
this .clientSecret = clientSecret ;
5462
- this .introspector = () -> new NimbusReactiveOpaqueTokenIntrospector (this .introspectionUri ,
5463
- this .clientId , this .clientSecret );
5466
+ this .introspector = () -> SpringReactiveOpaqueTokenIntrospector
5467
+ .withIntrospectionUri (this .introspectionUri )
5468
+ .clientId (this .clientId )
5469
+ .clientSecret (this .clientSecret )
5470
+ .build ();
5464
5471
return this ;
5465
5472
}
5466
5473
0 commit comments