I am a bit new to generate OAuth JWT tokens. I have been trying to implement an Authorization Server by using Spring Boot OAuth. The problem I am facing is I am not able to generate the JWT token, rather it generates a simple token and not JWT one.
I have created the project in GitHub . Please see the link https://github.com/jainaks2010/OAuth2AuthorizationServer
I think you need to add the converter to the endpoints like so:
@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
endpoints
.tokenStore(tokenStore())
.accessTokenConverter(jwtAccesTokenConvertor()) // <-- This one
.authenticationManager(authenticationManager)
.userDetailsService(userDetailsService);
}