use of org.springframework.security.oauth2.provider.token.TokenEnhancer in project Spring-5.0-By-Example by PacktPublishing.
the class OAuthTokenProducer method tokenEnhancer.
@Bean
public JwtAccessTokenConverter tokenEnhancer() {
JwtAccessTokenConverter converter = new JwtAccessTokenConverter();
converter.setSigningKey(privateKey);
converter.setVerifierKey(publicKey);
return converter;
}
Aggregations