Optional clientClient 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 passwordPassword for this user. Used in CLI apps where users cannot do OAuth 2.0.
Optional portalThe 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.
Optional providerArcGIS Authentication is used by default. Specifying an alternative will take users directly to the corresponding provider's OAuth page.
Optional redirectA 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 refreshOAuth 2.0 refresh token from a previous user session.
Optional refreshExpiration date of the refreshToken
Optional refreshDuration (in minutes) that a refresh token will be valid.
Optional serverAn unfederated ArcGIS Server instance known to recognize credentials supplied manually.
{
server: "https://sampleserver6.arcgisonline.com/arcgis",
token: "SOSlV3v..",
tokenExpires: new Date(1545415669763)
}
Optional sslThis value is set to true automatically if the ArcGIS Organization requires that requests be made over https.
Optional tokenOAuth 2.0 access token from a previous user session.
Optional tokenDuration of requested token validity in minutes. Used when requesting tokens with username and password or when validating the identity of unknown servers. Defaults to two weeks.
Optional tokenExpiration date for the token
Optional usernameThe authenticated user's username. Guaranteed to be unique across ArcGIS Online or your instance of ArcGIS Enterprise.
Options for the
UserSessionconstructor.