Hi We have created a native application in AAD and we are trying to get the access token from Azure using Adal4j in our java application following is the snippet
AuthenticationContext authContext;
AuthenticationResult authResult;
String loginUrl="https://login.microsoftonline.com/"+TENANTID+"/oauth2/authorize";
service = Executors.newFixedThreadPool(1);
authContext = new AuthenticationContext(loginUrl, false, service);
Future<AuthenticationResult> future = authContext.acquireToken("https://management.azure.com/", clientId, username,password, null);
authResult = future.get();
System.out.println("Token :"+authResult.getAccessToken());
but recently our organisation has enabled multi factor authentication and since then we are getting the below error.
java.util.concurrent.ExecutionException: com.microsoft.aad.adal4j.AuthenticationException: {"error_description":"AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'.\r\nTrace ID: c0ac222e-5a9b-417e-8360-d42712f43c00\r\nCorrelation ID: 96cc11c4-3196-448d-a416-a9373b8059a6\r\nTimestamp: 2018-08-13 12:57:59Z","error":"interaction_required"}
Please help me on how i can fix this error ADAL4j version is 1.1.3
I have created app registrations using below



Please let me know what im missing as i see it is displaying for your account bt not for my account. MFA is enabled for my tenant.


