When specifying a remote resolver that implements custom functionality for a Forge module, the endpoint that
the app communicates with is listed in the remotes section of the manifest.yml
file, and is referenced by key.
An endpoint
property of the resolver object specifies the key of the endpoint entry to use as the resolver.
Property | Type | Required | Description |
---|---|---|---|
key | string | Yes | A key for the endpoint, which other modules can refer to. Must be unique within the list of endpoints and have a maximum of 23 characters. Regex: |
remote | string | Yes | The remote key that defines the base portion of the path for this endpoint. |
route | {path:string} | No | The path appended to the This property is only required for backend module endpoints. UI module remote resolver endpoint paths are always specified in invokeRemote requests in the app's front end. |
auth | object | No | An object that defines the auth options available to the remote endpoint when calling Forge functions |
auth.appUserToken.enabled | boolean | No | If This token can be used by the remote app when invoking an Atlassian product API, to invoke the API with the permissions of the user in whose login session the app is running. Specifically, the API will have only as much access to the site's data as that user does. For example, if the user does not have permission to see pages in a particular space or issues in a particular project, the API won't provide them access to that space or page, either. Forge modules that run outside of a user's login session, such as an app lifecycle event or product event
are not associated with a user and cannot send an If an endpoint opts to enable remote user token access, the |
auth.appSystemToken.enabled | boolean | No | If This token can be used by the remote app when invoking an Atlassian product API, to invoke the API with the permissions of the generic "bot user for the app. If an endpoint opts to enable remote system token access, the |
Modifying the endpoint entries results in a major version upgrade of your app upon deploy. Your app users will again be required to consent to your app's permissions.
1 2endpoint: - key: remote-hello-world-ui remote: remote-app route: path: echo/ auth: appUserToken: enabled: true appSystemToken: enabled: false
Rate this page: