Select to view content in your preferred language

AppLogin and Runtime 100 without prompting to login

1547
2
01-24-2017 10:52 PM
nita14
by
Frequent Contributor

Hi All,

I am looking for the easiest way to access premium services from ArcGIS Online in my app without prompting user to login.

I found good article about authentication Authentication with ArcGIS Android 100.0.0 Part 2 | ArcGIS Blog, so I tried  to implement  AppLogin (Implementing App Login | ArcGIS for Developers ), but  no success. I do not find any option to pass client_id and client secret to OAuthManger, so I can be autohorized to use premium content. Next, I thought, I can use hosted proxy on ArcGIS Online, but did not find any example how to use it with Runtime 100. 

Any help is welcome,

Kind regards,

Adam

Tags (2)
0 Kudos
2 Replies
nita14
by
Frequent Contributor

No solution found so far. I decided to use UserCredential| arcgis-android.

0 Kudos
MichaelDavis3
Frequent Contributor

Hi Adam - I believe App Login can only work with content that is public in AGOL.

You can certainly embed credentials in a UserCredential object and use that to connect, however doing so probably runs afoul of ESRI's named-user requirements for AGOL.  If you were hosting data on an on-premise ArcGIS Server use of a "service account" to access content would be OK.

0 Kudos