IUserSessionOptions
Options for the UserSession
constructor.
Properties
Property | Type | Notes |
---|---|---|
Optional | string |
Client ID of your application. Can be obtained by registering an application on ArcGIS for Developers, ArcGIS Online or on your instance of ArcGIS Enterprise. |
Optional | string |
Password for this user. Used in CLI apps where users cannot do OAuth 2.0. |
Optional | string |
The ArcGIS Online or ArcGIS Enterprise portal you want to use for authentication. Defaults to |
Optional | AuthenticationProvider |
ArcGIS Authentication is used by default. Specifying an alternative will take users directly to the corresponding provider's OAuth page. |
Optional | string |
A valid URL to redirect to after a user authorizes your application. Can be set on ArcGIS for Developers, ArcGIS Online or on your instance of ArcGIS Enterprise. |
Optional | string |
OAuth 2.0 refresh token from a previous user session. |
Optional | Date |
Expiration date of the |
Optional | number |
Duration (in minutes) that a refresh token will be valid. |
Optional | string |
An unfederated ArcGIS Server instance known to recognize credentials supplied manually.
|
Optional | boolean |
This value is set to true automatically if the ArcGIS Organization requires that requests be made over https. |
Optional | string |
OAuth 2.0 access token from a previous user session. |
Optional | number |
Duration of requested token validity in minutes. Used when requesting tokens with |
Optional | Date |
Expiration date for the |
Optional | string |
The authenticated user's username. Guaranteed to be unique across ArcGIS Online or your instance of ArcGIS Enterprise. |
Interface defined in packages/arcgis-rest-auth/src/UserSession.ts:158