AnsweredAssumed Answered

ArcGIS Online generateToken does not work?

Question asked by nita14 on May 11, 2016
Latest reply on Dec 14, 2017 by KGerrow-esristaff


Hi All,

 

I try to user token-based authentication to ArcGIS Online using my developers.arcgis.com account.

I pass the following request "https://www.arcgis.com/sharing/generateToken?username=myname&password=mypass&client=requestip&f=json "

 

However, my request seems to be invalid, as I receive the message "{"error":{"code":400,"message":"Unable to generate token.","details":["Invalid username or password."]}}". The credentials are 100% good.

 

My question is: can I still use token-based authentciation for ArcGIS Online and Portal for ArcGIS or should go with OAuth?

 

Thanks,

 

Adam

Outcomes