create MethodStatic
Create a new context for agent applications or long running backend operations to pass to various services that require authorization. Uses the authorization information supplied to IModelHost to setup an accessToken within the context.
create(activityId: string = Guid.createValue()): Promise<AuthorizedBackendRequestContext>
throws BentleyError if the application cannot be authorized.
see IModelHost.authorizationClient to setup authorization for the backend application.
Parameter | Type | Description |
---|---|---|
activityId | string |
Defined in
Last Updated: 08 January, 2020