mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 21:42:17 +00:00
Fixing IllegalStateException message in OAuth2ResourceServerConfigurer
Updated message to include `http.oauth2ResourceServer()`
This commit is contained in:
parent
adb9f4e34b
commit
8f49ca850a
@ -183,9 +183,9 @@ public final class OAuth2ResourceServerConfigurer<H extends HttpSecurityBuilder<
|
|||||||
if ( this.jwtConfigurer == null ) {
|
if ( this.jwtConfigurer == null ) {
|
||||||
throw new IllegalStateException("Jwt is the only supported format for bearer tokens " +
|
throw new IllegalStateException("Jwt is the only supported format for bearer tokens " +
|
||||||
"in Spring Security and no Jwt configuration was found. Make sure to specify " +
|
"in Spring Security and no Jwt configuration was found. Make sure to specify " +
|
||||||
"a jwk set uri by doing http.oauth2().resourceServer().jwt().jwkSetUri(uri), or wire a " +
|
"a jwk set uri by doing http.oauth2ResourceServer().jwt().jwkSetUri(uri), or wire a " +
|
||||||
"JwtDecoder instance by doing http.oauth2().resourceServer().jwt().decoder(decoder), or " +
|
"JwtDecoder instance by doing http.oauth2ResourceServer().jwt().decoder(decoder), or " +
|
||||||
"expose a JwtDecoder instance as a bean and do http.oauth2().resourceServer().jwt().");
|
"expose a JwtDecoder instance as a bean and do http.oauth2ResourceServer().jwt().");
|
||||||
}
|
}
|
||||||
|
|
||||||
JwtDecoder decoder = this.jwtConfigurer.getJwtDecoder();
|
JwtDecoder decoder = this.jwtConfigurer.getJwtDecoder();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user