How create tokens that tied to user and client
I have a spring oauth2 implementation for my API. I would like to do some testing using JMeter. In order to do that, I would like to write some test code that will generate 1000 users and automatically create a token for them. I will then export these tokens to be used in JMeter when load testing the API. I have one client for them which is already generated and the 1000 users.
Can someone guide me towards how to create tokens from within JAVA? I do not want to have any UI involved. I think I am looking for a couple of java calls that will create the OAuth2AccessToken which is already bound to the user and the client.
Thanks