abensaid

Authentication question

Discussion created by abensaid on Mar 23, 2017

Hi, I have a valid User's credentials, I can use them to connect successfully to the ESRI.com ArcGis Online Portal website but when I use them in my application, I get an exception stating "Invalid username/password". I've been trying with other accounts and it all works well. I'm not sure why this user specifically cannot connect. The exception is raised when generating credentials for that user like this : 

  1. var cred = await Esri.ArcGISRuntime.Security.IdentityManager.Current.GenerateCredentialAsync(  
  2.         PORTAL_SERVER_URL, UserTextBox.Text, PasswordTextBox.Password);

The only difference I see is that this user is part of a Group with a User role.
PS: I'm using a valid ClientId to connect and it really works well with 4-5 different accounts.

What can cause the SDK IdentityManager to detect a bad username/password combination when the creds are 100% correct ? Is there another reason why the SDK would send us that error message ?

 

Thank you,

 

Ali

Outcomes