create MethodStatic
Create a new context for agent applications or long running frontend 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<AuthorizedFrontendRequestContext>
throws BentleyError if the application cannot be authorized.
see IModelApp.authorizationClient to setup authorization for the frontend application.
Parameter | Type | Description |
---|---|---|
activityId | string |
Defined in
Last Updated: 08 January, 2020