Reputation: 7487
I'm trying to set up a login with username and password for ADAL (Azure AD).
I use the library that Microsoft published via Maven:
implementation 'com.microsoft.aad:adal:1.11.0'
But this one only seems to support logging in via a pop-up screen, coming from the SDK. I want to supply the username and password myself, like the way it is possible in C# (https://github.com/Azure-Samples/active-directory-dotnet-native-headless)
I checked the "answer" here: Authenticate the user on Azure AD using ADAL library from Android native app but that one points to other projects and still give no information on which call accepts a password.
I'm starting to think that this has be removed. Anyone that can point me in the right direction?
Upvotes: 1
Views: 427
Reputation: 3237
ADAL Android does not support Username/Password flows (also called Resource Owner Password Grant). You can submit a request through UserVoice including the scenario you're trying to implement (helps understand the request).
In general, I'd strongly recommend against using this flow as it is quite brittle (e.g. the app will fail if it encounters MFA) and requires you to capture the end users credentials and may be unsafe. Here's a great blog post that walks through the reason to use this flow.
Upvotes: 1