how to implement app login in custom web app?

1658
0
04-16-2017 02:02 PM
GirishMeena1
New Contributor II

I created map, web mapping application on ArcGIS Online and wanted to access map using this app (but app hosted on my server using app login). We can create web application using many default template on ArcGIS Online. we can also download source code of these JavaScript applications and can host them on own servers.But I am not able to find any example which can guide me to modify app code to use app login.

I already know following steps:

  • Register the app and get client id (app id)/client secret (app secret)
  • Using POST request get access token from https://www.arcgis.com/sharing/rest/oauth2/token/
  • What next? Not sure
  • How to modify code in my downloaded app to access map.
  • Downloaded app folder structure

Following are resources i refereed 

Implementing App Login | ArcGIS for Developers 

ArcGIS REST API 

Add items—ArcGIS Online Help | ArcGIS 

Thanks

0 Kudos
0 Replies