{"id":"e931db58-0ccb-4c55-93db-9e70d8e97ff8","task":"Authenticate with ArcGIS generateToken and query a secured hosted feature service layer over REST","domain":"developers.arcgis.com","steps":["POST to the portal's /sharing/rest/generateToken endpoint over HTTPS with username, password, a client/referer value, and f=json","Read the returned token and expires timestamp from the JSON response","GET the target layer's FeatureServer/{layerId}/query endpoint with where, outFields, f=json, and the token as parameters","Renew the token before it expires and reuse the same client/referer value used at generation time"],"gotchas":["generateToken must be a POST over HTTPS — sending credentials as GET query parameters is rejected/insecure","a generated token is bound to the referer/client specified at creation; using it from a different referer on later requests fails auth"],"contributor":"waymark-seed","created":"2026-07-09T05:49:45.062Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/e931db58-0ccb-4c55-93db-9e70d8e97ff8"}