IArcGISContextManagerOptions

Interface

Options that can be passed into ArcGISContextManager.create

Properties

Property Type Notes
authentication Optional UserSession

Existing user session, which may be created from Identity Manager const session = UserSession.fromCredential(idMgr.getCredential());

currentUser Optional IUser

Current user as IUser. If not passed into .create with the UserSession it will be fetched.

logLevel Optional Level

Logging level off > error > warn > info > debug > all defaults to 'error'

portal Optional IPortal

Portal self for the authenticated user. If not passed into .create with the UserSession, it will be fetched

portalUrl Optional string

ArcGIS Online or ArcGIS Enterprise portal url. Do not include /sharing/rest Defaults to https://www.arcgis.com For ArcGIS Enterprise, you must include the webadaptor name. i.e. https://gis.mytown.gov/portal

properties Optional Record<stringany>

Any additional properties to expose on the context. This allows an application to send additional context into the system. For example, in ArcGIS Hub, many times we want to pass in the active "Hub Site" as additional context, so we will send that in as a node on a properties object.


Interface defined in common/src/ArcGISContextManager.ts:15