Hi,
I have generated token using my ArcGIS online credentials as provided below
https://developers.arcgis.com/documentation/security-and-authentication/app-authentication/client-credentials-flow/
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
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#registerToken.
That should allow you to access secured resources.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.