Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Error: Interaction required #4

Closed
venkatmarepalli opened this issue Apr 18, 2017 · 4 comments
Closed

Error: Interaction required #4

venkatmarepalli opened this issue Apr 18, 2017 · 4 comments

Comments

@venkatmarepalli
Copy link

venkatmarepalli commented Apr 18, 2017

I tried your application on windows and it worked like a charm, I was wondering if this ADAL library can bypass MFA or not.

Our organization has MFA setup, it asks for MFA whenever a user logs in from a different location. When I tried this sample on my Linux box which is at a different location, I got the below error. Please confirm if ADAL library can bypass MFA and give users text only interface to authenticate to the application.

Caused by: com.microsoft.aad.adal4j.AuthenticationException: {"error":"interaction_required","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 '00000002-0000-0000-c000-000000000000'.\r\nTrace ID: 7903cd61-659e-4dc6-a8b0-3dac4c672700\r\nCorrelation ID: b541777f-e2cc-4b87-ab7b-8dd83654d445\r\nTimestamp: 2017-04-18 23:02:36Z"}

@sangonzal
Copy link
Contributor

Hi @venkatmarepalli, ADAL4J can be used to sign in MFA enabled accounts, although this sample does not show how to do it. If you'd like to see a sample that handles MFA, take a look at this web app sample.

@venkatmarepalli
Copy link
Author

venkatmarepalli commented Apr 23, 2018

Thank you for your reply. Can you tell me how MFA is handled here? Does it make users to enter the code on console or does ADALJ4 passes authentication without MFA ?

@sangonzal Just to clarify we have a native app which does authentication using the browser, we wanted to get rid off this process if ADALJ4 supports MFA or this feature is released

@user210182
Copy link

Hi,
I am trying to authenticate using username and password to an application i have registered on Azure portal.
But i get the below error.
The request body must contain the following parameter: 'client_secret or client_assertion.

How can i pass the client secret using the method aquiretoken with username and password.
There is no such method in the library.

Thanks,

@TiagoBrenck
Copy link
Contributor

This sample has been archived.

The newer one can be found at: https://github.com/Azure-Samples/ms-identity-java-desktop/tree/master/Username-Password-Flow

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants