-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArcGISIdentityManager token/refreshToken update event #1180
Comments
Thank you for logging this issue @newmanw. Would you be able to post some example code that illustrates the issue that you're referring to? |
@gavinr-maps sure thing, and thanks for the response.
This will continue to work as long as the SDK request can refresh the token and/or the refreshToken. If the identityManager is stored only in memory a new token/refreshToken would be lost if the server went down for any reason. As such I am saving the identityManager to a persistent data store. Right now I have to check if the identity managers state changed (tokens) to determine if I should persist, or just persist every time.
If there was a hook for token updates I would not need to persist every time.
|
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
The text was updated successfully, but these errors were encountered: