parent
8e5dd19b3b
commit
c43e632a6d
|
@ -341,7 +341,7 @@ Resource Server uses `JwtTimestampValidator` to verify a token's validity window
|
||||||
@Bean
|
@Bean
|
||||||
ReactiveJwtDecoder jwtDecoder() {
|
ReactiveJwtDecoder jwtDecoder() {
|
||||||
NimbusReactiveJwtDecoder jwtDecoder = (NimbusReactiveJwtDecoder)
|
NimbusReactiveJwtDecoder jwtDecoder = (NimbusReactiveJwtDecoder)
|
||||||
ReactiveJwtDecoders.withOidcIssuerLocation(issuerUri);
|
ReactiveJwtDecoders.fromOidcIssuerLocation(issuerUri);
|
||||||
|
|
||||||
OAuth2TokenValidator<Jwt> withClockSkew = new DelegatingOAuth2TokenValidator<>(
|
OAuth2TokenValidator<Jwt> withClockSkew = new DelegatingOAuth2TokenValidator<>(
|
||||||
new JwtTimestampValidator(Duration.ofSeconds(60)),
|
new JwtTimestampValidator(Duration.ofSeconds(60)),
|
||||||
|
@ -383,7 +383,7 @@ Then, to add into a resource server, it's a matter of specifying the `ReactiveJw
|
||||||
@Bean
|
@Bean
|
||||||
ReactiveJwtDecoder jwtDecoder() {
|
ReactiveJwtDecoder jwtDecoder() {
|
||||||
NimbusReactiveJwtDecoder jwtDecoder = (NimbusReactiveJwtDecoder)
|
NimbusReactiveJwtDecoder jwtDecoder = (NimbusReactiveJwtDecoder)
|
||||||
ReactiveJwtDecoders.withOidcIssuerLocation(issuerUri);
|
ReactiveJwtDecoders.fromOidcIssuerLocation(issuerUri);
|
||||||
|
|
||||||
OAuth2TokenValidator<Jwt> audienceValidator = new AudienceValidator();
|
OAuth2TokenValidator<Jwt> audienceValidator = new AudienceValidator();
|
||||||
OAuth2TokenValidator<Jwt> withIssuer = JwtValidators.createDefaultWithIssuer(issuerUri);
|
OAuth2TokenValidator<Jwt> withIssuer = JwtValidators.createDefaultWithIssuer(issuerUri);
|
||||||
|
|
|
@ -721,7 +721,7 @@ Resource Server uses `JwtTimestampValidator` to verify a token's validity window
|
||||||
@Bean
|
@Bean
|
||||||
JwtDecoder jwtDecoder() {
|
JwtDecoder jwtDecoder() {
|
||||||
NimbusJwtDecoder jwtDecoder = (NimbusJwtDecoder)
|
NimbusJwtDecoder jwtDecoder = (NimbusJwtDecoder)
|
||||||
JwtDecoders.withOidcIssuerLocation(issuerUri);
|
JwtDecoders.fromOidcIssuerLocation(issuerUri);
|
||||||
|
|
||||||
OAuth2TokenValidator<Jwt> withClockSkew = new DelegatingOAuth2TokenValidator<>(
|
OAuth2TokenValidator<Jwt> withClockSkew = new DelegatingOAuth2TokenValidator<>(
|
||||||
new JwtTimestampValidator(Duration.ofSeconds(60)),
|
new JwtTimestampValidator(Duration.ofSeconds(60)),
|
||||||
|
@ -761,7 +761,7 @@ Then, to add into a resource server, it's a matter of specifying the `JwtDecoder
|
||||||
@Bean
|
@Bean
|
||||||
JwtDecoder jwtDecoder() {
|
JwtDecoder jwtDecoder() {
|
||||||
NimbusJwtDecoder jwtDecoder = (NimbusJwtDecoder)
|
NimbusJwtDecoder jwtDecoder = (NimbusJwtDecoder)
|
||||||
JwtDecoders.withOidcIssuerLocation(issuerUri);
|
JwtDecoders.fromOidcIssuerLocation(issuerUri);
|
||||||
|
|
||||||
OAuth2TokenValidator<Jwt> audienceValidator = new AudienceValidator();
|
OAuth2TokenValidator<Jwt> audienceValidator = new AudienceValidator();
|
||||||
OAuth2TokenValidator<Jwt> withIssuer = JwtValidators.createDefaultWithIssuer(issuerUri);
|
OAuth2TokenValidator<Jwt> withIssuer = JwtValidators.createDefaultWithIssuer(issuerUri);
|
||||||
|
|
Loading…
Reference in New Issue