ReadonlysharingNormalized .../sharing/rest base for this portal.
Exchange username/password for a portal token via
POST /sharing/rest/generateToken. Stores the token on this instance and
returns the credential (expires ms → expiresAtMs).
GET /sharing/rest/info.
GET /sharing/rest/content/items/{id}.
GET /sharing/rest/portals/self (attaches the token when present).
Resolve an item (fetching it when given an id), parse its service url, and
return an authenticated handle. Feature Service items yield a
FeatureLayerCompat bound to a client carrying the portal token;
Map/Image Service items yield the resolved { baseUrl, serviceId, client }.
Register the currently held token with the shared identityManager
under this portal's /sharing/rest server, so subsequent esri-compat calls
resolve the same credential.
GET /sharing/rest/search.
Client for a Honua
/sharing/restPortal facade. Lets a repointed ArcGIS app authenticate, search for items, and open an item that resolves to a/rest/servicesURL — carrying the portal token through to the opened layer so the whole flow authenticates end to end.Example