Create token string with Java SDK for testing

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

com.auth0
auth0
1.24.0

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?

Hi @wazy.software

You can use test accounts and ROPG:

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

John

1 Like

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