Hello,
We’re migrating our app to use forge remote. We were searching for the client key value but couldn’t locate it. For authentication we use addon.authenticateForge().
Previously we were getting the value from res.locals.clientKey. After using forge remote it’s empty.
{
clientKey: ‘’,
}
P.S. I’ve used addon.associateConnect() middleware based on this doc: Using Forge Remote in Connect frameworks but it shows up as empty still when i log req.context.clientKey
Hi
In Forge, there’s no clientKey like in Connect apps.
Tenant identification now uses the cloudId, which uniquely represents each Atlassian site. If you’re using associateConnect(), it links the AtlassianHostUser by installationId → cloudId under the hood - that’s how Forge connects your app instance with the tenant.
Just note that the installationId changes every time the app is reinstalled, while the cloudId always remains the same - that’s the reliable way to identify the tenant.