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.

featureFlags Optional IFeatureFlags

Optional hash of feature flags

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.

resourceConfigs Optional IUserResourceConfig[]

Array of app, clientId's that Context Manager should exchange tokens for

resourceTokens Optional IUserResourceToken[]

Array of app, clientId, token objects which Context Manager has exchanged tokens for

serviceStatus Optional HubServiceStatus

Option to pass in service status vs fetching it

trustedOrgIds Optional string[]

Array of Trusted Org Ids

trustedOrgs Optional IHubTrustedOrgsResponse[]

Trusted orgs xhr response

userHubSettings Optional IUserHubSettings

Hash of user hub settings. These are stored as user-app-resources, associated with the hubforarcgis clientId


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