Interface
Options for the ArcGISIdentityManager
constructor.
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 | Password for this user. Used in CLI apps where users cannot do OAuth 2.0. | |
string | The ArcGIS Online or ArcGIS Enterprise portal you want to use for authentication. Defaults to | |
ArcGIS Authentication is used by default. Specifying an alternative will take users directly to the corresponding provider's OAuth page. | ||
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. | |
string | The referer to use when getting the token with | |
string | OAuth 2.0 refresh token. | |
Date | Expiration date of the | |
string | An unfederated ArcGIS Server instance known to recognize credentials supplied manually. | |
boolean | This value is set to true automatically if the ArcGIS Organization requires that requests be made over https. | |
string | OAuth 2.0 access token. | |
number | Duration of requested token validity in minutes. Used when requesting tokens with | |
Date | Expiration date for the | |
string | The authenticated user's username. Guaranteed to be unique across ArcGIS Online or your instance of ArcGIS Enterprise. |
clientId
clientId: 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.
password
password: string
Password for this user. Used in CLI apps where users cannot do OAuth 2.0.
portal
portal: string
The ArcGIS Online or ArcGIS Enterprise portal you want to use for authentication. Defaults to https://www.arcgis.com/sharing/rest
for the ArcGIS Online portal.
provider
provider: AuthenticationProvider
ArcGIS Authentication is used by default. Specifying an alternative will take users directly to the corresponding provider's OAuth page.
redirectUri
redirectUri: 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.
referer
referer: string
The referer to use when getting the token with .signIn()
refreshTokenExpires
refreshTokenExpires: Date
Expiration date of the refreshToken
server
server: string
An unfederated ArcGIS Server instance known to recognize credentials supplied manually.
{
server: "https://sampleserver6.arcgisonline.com/arcgis",
token: "SOSlV3v..",
tokenExpires: new Date(1545415669763)
}
ssl
ssl: boolean
This value is set to true automatically if the ArcGIS Organization requires that requests be made over https.