Skip to content

Linear adapter cannot work for a multi-tenant app #345

@SamyPesse

Description

@SamyPesse

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions