arcgis
How to get these credentialsCredentials for token-secured ArcGIS REST services (ArcGIS Server, ArcGIS Enterprise and ArcGIS Online) read by arcgis_query: a pre-generated ArcGIS token, an ArcGIS username and password, or an ArcGIS OAuth app's client_id and client_secret. Give it a SCOPE (a URL prefix such as 'https://host/arcgis/rest/services/') so it is only sent to that server; the longest matching scope wins.
CREATE SECRET arcgis (
TYPE arcgis,
token '<ARCGIS_TOKEN>', -- secret
username '<username>',
password '<ARCGIS_PASSWORD>', -- secret
client_id '<client_id>',
client_secret '<ARCGIS_CLIENT_SECRET>' -- secret
);
| Key | Type | Required | Description |
|---|---|---|---|
| token secret | VARCHAR | — | A pre-generated ArcGIS token (from the server's generateToken page, or an ArcGIS Online API key), sent as the token parameter as is. Generate it with client=requestip, or with referer https://github.com/Query-farm/vgi-arcgis. It is not renewed when it expires. |
| username | VARCHAR | — | ArcGIS Server, ArcGIS Enterprise or ArcGIS Online user name; exchanged with password for a token at the server's token service (authInfo.tokenServicesUrl of <server>/rest/info). |
| password secret | VARCHAR | — | Password of username. Sent only to the server's token service, over HTTPS. |
| client_id | VARCHAR | — | Client ID of an ArcGIS OAuth application (ArcGIS Online or an ArcGIS Enterprise portal: Content > the app item > Settings), used with client_secret for the client-credentials flow. |
| client_secret secret | VARCHAR | — | Client secret of the OAuth application named by client_id. Sent only to the portal's oauth2/token endpoint, over HTTPS. |
The worker doesn't mark which keys are required.