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,8 @@ 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 . withIntrospectionUri (this .introspectionUri )
5448
+ . clientId ( this .clientId ). clientSecret ( this .clientSecret ). build ( );
5448
5449
return this ;
5449
5450
}
5450
5451
@@ -5459,8 +5460,8 @@ public OpaqueTokenSpec introspectionClientCredentials(String clientId, String cl
5459
5460
Assert .notNull (clientSecret , "clientSecret cannot be null" );
5460
5461
this .clientId = clientId ;
5461
5462
this .clientSecret = clientSecret ;
5462
- this .introspector = () -> new NimbusReactiveOpaqueTokenIntrospector (this .introspectionUri ,
5463
- this .clientId , this .clientSecret );
5463
+ this .introspector = () -> SpringReactiveOpaqueTokenIntrospector . withIntrospectionUri (this .introspectionUri )
5464
+ . clientId ( this .clientId ). clientSecret ( this .clientSecret ). build ( );
5464
5465
return this ;
5465
5466
}
5466
5467
0 commit comments