Community Discussion
[Java sdk] Get token by credential (clientId, clientSecret)
11 days ago by Thao Nguyen
I have confuse when using BackstageAuthenticationEndpoint to get token by client id and secret, i didn't find implement class for enpoint interface, so how i can set up an AuthenticationServiceImpl and BackstageAuthentication to get token.
Code sample:
BackstageAuthenticationEndpoint authEndpointMock = new BackstageAuthenticationEndpointImpl();
AuthenticationServiceImpl testInstance = new AuthenticationServiceImpl(authEndpointMock);
BackstageAuthentication auth = testInstance.clientCredentials(clientId, clientSecret);
auth.getToken();
Or have other way to get token, can share with me please,
Thank you,