parent
c4eaac0423
commit
76d4b1e5a3
|
@ -96,4 +96,5 @@ public class RestConfig extends WebSecurityConfigurerAdapter {
|
||||||
JWKSource<SecurityContext> jwks = new ImmutableJWKSet<>(new JWKSet(jwk));
|
JWKSource<SecurityContext> jwks = new ImmutableJWKSet<>(new JWKSet(jwk));
|
||||||
return new NimbusJwtEncoder(jwks);
|
return new NimbusJwtEncoder(jwks);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,4 +57,5 @@ public class TokenController {
|
||||||
// @formatter:on
|
// @formatter:on
|
||||||
return this.encoder.encode(JwtEncoderParameters.from(claims)).getTokenValue();
|
return this.encoder.encode(JwtEncoderParameters.from(claims)).getTokenValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue