Files
PaperClipAI/server/oauth-providers/linear.yaml
T
DottaandPaperclip 382cb3bede feat(oauth): restack OAuth backbone
Restack the OAuth backend from PR #5584 onto current master for PAP-9233, preserving the provider registry, OAuth routes, refresh worker, resolver integration, tests, and docs.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-12 09:47:09 -05:00

28 lines
1002 B
YAML

id: linear
displayName: Linear
docUrl: https://developers.linear.app/docs/oauth/authentication
clientCredentials:
clientIdEnv: LINEAR_OAUTH_CLIENT_ID
clientSecretEnv: LINEAR_OAUTH_CLIENT_SECRET
endpoints:
authorize: https://linear.app/oauth/authorize
token: https://api.linear.app/oauth/token
# Linear's primary API is GraphQL POST-only — the default GET-based
# `fetchAccountInfo` cannot reach it. Linear exposes an OIDC-style userinfo
# endpoint on the OAuth surface; we use that here so the default shape can
# consume the response. If a real flow surfaces that this endpoint is
# unavailable for the configured scopes, Phase 7 integration tests will
# catch it and a Linear shape module can be added to override account-info
# fetching.
accountInfo: https://api.linear.app/oauth/userinfo
scopes:
default: [read]
offered: [read, write, admin]
pkce: required
authMethod: post
responseFormat: json
accountIdField: sub
accountLabelField: email
refresh:
supported: false