Esri/arcgis-rest-js

ArcGISIdentityManager token/refreshToken update event

Open

#1,180 opened on Nov 2, 2024

 (3 comments) (1 reaction) (0 assignees)TypeScript (126 forks)auto 404
enhancementhelp wanted

Repository metrics

Stars
 (389 stars)
PR merge metrics
 (PR metrics pending)

Description

Describe the problem

I am using the API server side to automate updates to ArcGIS server. In the event the server goes down the ArcGISIdentityManager is stored in the database (serialized), allowing the automated service to setup an ArcGISIdentityManager on startup.

The ArcGISIdentityManager will handle token and refreshToken updates automatically. In such a case I would need to update my datastore. Currently there is no mechanism for a client of the REST API to listen for such changes.

Describe the proposed solution

Event or hook to allow a client to listen for token/refreshToken updates.

Alternatives considered

Currently retrieving ArcGISIdentityManager information on every automated update to detect changes and update my datastore if necessary.

Additional Information

No response

Contributor guide