mercredi 8 février 2017

Passing user credentials to Adal AquireTokenAsync

Vote count: 0

I am using Adal (Active Directory Authentication Library) Version 3.13.x. I am doing something like below to fetch the Access token

AuthResult = await AuthContext.AcquireTokenAsync(ServiceConstants.AUTHORITY, ServiceConstants.CLIENTID, ServiceConstants.RETURNURI, param);

I need to pass the UserCredentials along as well, but right now I can only pass one parameter to the UserCredential() unlike in the Versions 2.x.x of Adal.

I also tried using UserPasswordCredential as suggested in this solution , but since I want to Fetch the token from a Mobile app, I only have access to .net Core and hence can not use UserPasswordCredential

I want to pass the username and password together while acquiring the token. Is there any way i can achieve this?

Any help would be appreciated.

asked 55 secs ago

Let's block ads! (Why?)



Passing user credentials to Adal AquireTokenAsync

Aucun commentaire:

Enregistrer un commentaire