Select to view content in your preferred language

Generated token not able access my webmap

308
1
10-23-2024 11:40 AM
naveenbesri
Frequent Contributor

Hi,

I have generated token using my ArcGIS online credentials as provided below

https://developers.arcgis.com/documentation/security-and-authentication/app-authentication/client-cr...

When I try to access my webmap  iam not able to access using the generated token. Kindly let me know what is the procedure to access my webmap using JavaScript API.

 

Thanks

Naveen

0 Kudos
1 Reply
RamaniGanason
Regular Contributor

After getting the token, you will need to register the token using the following function: https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#reg...

That should allow you to access secured resources.

Tags (1)
0 Kudos