Create token string with Java SDK for testing

I am using the following dependency in one of my microservices:


I want to create some integration tests and to achieve this, in some cases, I need to set token to SecurityContext in order for authorization to not fail. How can I get an access token from java, for a test user that exists in the auth0 Users?


You can use test accounts and ROPG:

Ensure that these test accounts are not usable in production, only for testing.


1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.