I have 2 API's: A and B. Both are registred in Azure AD as a API. In azure i generated a KEY to B.
Now i need generate a Access Token so i'm using ADAL Library to Java. I'm trying to use this method:
public Future<AuthenticationResult> acquireToken(final String resource,
final UserAssertion userAssertion, final ClientCredential credential,
final AuthenticationCallback callback)
I have the ClientCredital information but i don't have userAsstion and i don't know how generate it. Someone can help ?
This is my call:
Future<AuthenticationResult> future = context.acquireToken("http://localhost:8081",SHOULD_BE_ASSERTION,
new ClientCredential(CLIENT_ID,SECRET),null);