The current state of the Linear adapter doesn't support an OAuth app that can be installed on another workspace than the one which created it. The main reason is the tokens management using grant_type=client_credentials, meaning it uses a global token that has access to only public teams in the workspace that created the app.
Another issue I noticed is that message.raw.organizationId is always undefined.
To fix it, we need to change the tokens management to be more similar to what the Slack adapter is doing with handleOAuthCallback.
The current state of the Linear adapter doesn't support an OAuth app that can be installed on another workspace than the one which created it. The main reason is the tokens management using
grant_type=client_credentials, meaning it uses a global token that has access to only public teams in the workspace that created the app.Another issue I noticed is that
message.raw.organizationIdis alwaysundefined.To fix it, we need to change the tokens management to be more similar to what the Slack adapter is doing with
handleOAuthCallback.