Merge 118bc57de7
into f44ab7afdf
This commit is contained in:
commit
2332e751fe
|
@ -138,6 +138,7 @@ import org.springframework.web.accept.HeaderContentNegotiationStrategy;
|
||||||
* @author Josh Cummings
|
* @author Josh Cummings
|
||||||
* @author Evgeniy Cheban
|
* @author Evgeniy Cheban
|
||||||
* @author Jerome Wacongne <ch4mp@c4-soft.com>
|
* @author Jerome Wacongne <ch4mp@c4-soft.com>
|
||||||
|
* @author Yanming Zhou
|
||||||
* @since 5.1
|
* @since 5.1
|
||||||
* @see BearerTokenAuthenticationFilter
|
* @see BearerTokenAuthenticationFilter
|
||||||
* @see JwtAuthenticationProvider
|
* @see JwtAuthenticationProvider
|
||||||
|
@ -490,8 +491,10 @@ public final class OAuth2ResourceServerConfigurer<H extends HttpSecurityBuilder<
|
||||||
public OpaqueTokenConfigurer introspectionUri(String introspectionUri) {
|
public OpaqueTokenConfigurer introspectionUri(String introspectionUri) {
|
||||||
Assert.notNull(introspectionUri, "introspectionUri cannot be null");
|
Assert.notNull(introspectionUri, "introspectionUri cannot be null");
|
||||||
this.introspectionUri = introspectionUri;
|
this.introspectionUri = introspectionUri;
|
||||||
this.introspector = () -> new SpringOpaqueTokenIntrospector(this.introspectionUri, this.clientId,
|
this.introspector = () -> SpringOpaqueTokenIntrospector.withIntrospectionUri(this.introspectionUri)
|
||||||
this.clientSecret);
|
.clientId(this.clientId)
|
||||||
|
.clientSecret(this.clientSecret)
|
||||||
|
.build();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -500,8 +503,10 @@ public final class OAuth2ResourceServerConfigurer<H extends HttpSecurityBuilder<
|
||||||
Assert.notNull(clientSecret, "clientSecret cannot be null");
|
Assert.notNull(clientSecret, "clientSecret cannot be null");
|
||||||
this.clientId = clientId;
|
this.clientId = clientId;
|
||||||
this.clientSecret = clientSecret;
|
this.clientSecret = clientSecret;
|
||||||
this.introspector = () -> new SpringOpaqueTokenIntrospector(this.introspectionUri, this.clientId,
|
this.introspector = () -> SpringOpaqueTokenIntrospector.withIntrospectionUri(this.introspectionUri)
|
||||||
this.clientSecret);
|
.clientId(this.clientId)
|
||||||
|
.clientSecret(this.clientSecret)
|
||||||
|
.build();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue