ArcGISTokenRequestErrorCodes

Enumeration

There are 5 potential error codes that might be thrown by ArcGISTokenRequestError. 2 of these codes are used by bothArcGISIdentityManager or ApplicationCredentialsManager:

  • TOKEN_REFRESH_FAILED when a request for an new access token fails.
  • UNKNOWN_ERROR_CODE the error is unknown. More information may be available in ArcGISTokenRequestError.response

The 3 remaining error codes will only be thrown when using ArcGISIdentityManager:

  • GENERATE_TOKEN_FOR_SERVER_FAILED when a request for a token for a specific federated server fails.
  • REFRESH_TOKEN_EXCHANGE_FAILED when a request for a new refresh token fails.
  • NOT_FEDERATED when the requested server isn't federated with the portal specified in ArcGISIdentityManager.portal.

Enumeration members

Enumeration memberValue
GENERATE_TOKEN_FOR_SERVER_FAILED
"GENERATE_TOKEN_FOR_SERVER_FAILED"
NOT_FEDERATED
"NOT_FEDERATED"
REFRESH_TOKEN_EXCHANGE_FAILED
"REFRESH_TOKEN_EXCHANGE_FAILED"
TOKEN_REFRESH_FAILED
"TOKEN_REFRESH_FAILED"
UNKNOWN_ERROR_CODE
"UNKNOWN_ERROR_CODE"

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close