IOAuth2Options
Options for static OAuth 2.0 helper methods on UserSession
.
Properties
Property | Type | Notes |
---|---|---|
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. |
|
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 | number |
Duration (in minutes) that a token will be valid. Defaults to 20160 (two weeks). |
Optional | number |
The requested validity in minutes for a token. Defaults to 20160 (two weeks). |
Optional | string |
The locale assumed to render the login page. |
Optional | boolean |
Determines whether to open the authorization window in a new tab/window or in the current window. |
Optional | string |
The window features passed to window.open() when |
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 | number |
Duration (in minutes) that a refresh token will be valid. |
Optional | string |
Applications can specify an opaque value for this parameter to correlate the authorization request sent with the received response. By default, clientId is used. |
Index Signatures
Interface defined in packages/arcgis-rest-auth/src/UserSession.ts:80