API ReferenceAnnouncementsCommunity Discussion
API ReferenceCommunity DiscussionAnnouncementsSubscribeLog In
Community Discussion

Community Discussion

Ask a Question
Back to All

[Java sdk] Get token by credential (clientId, clientSecret)

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,