ClientID/ Secret /generatetoken for Hosted Feature Layer

203
3
02-22-2024 10:26 AM
AnonymousUser23
New Contributor III

Looking for documentation to use /server/admin/generatetoken that is hard coded in an application and set up clientID/Secret for 2 specific hosted feature layers. This is a federated enterprise setup. 

 

Thank you

0 Kudos
3 Replies
MichaelJenkins
Occasional Contributor III

Following.   We need to do the same thing.   I see how to create an "application" item that has a client ID and secret, and I am able to generate a token using that, but I don't understand how that grants access to content, or how to specify which content it should have access to.

GISP
0 Kudos
AnonymousUser23
New Contributor III

Exactly what we are running into. Was straight forward with an unfedereated stand-alone server but these Vector Tile services have to be on an Enterprise setup. 

 

 

0 Kudos
HenryLindemann
Esri Contributor

This article should explain it, the application will have access to all the content where it is located and any groups it is in.
Authentication—ArcGIS REST APIs | ArcGIS Developers

Working with different authentication schemes | ArcGIS API for Python

User authentication | Documentation | ArcGIS Developers

Hope it helps

Regards

Henry

 

0 Kudos