Skip to content

Support LinkedIn confidential OAuth without PKCE - #2093

Open
baggiiiie wants to merge 2 commits into
UsefulSoftwareCo:mainfrom
baggiiiie:fix/2087-linkedin-confidential-oauth
Open

baggiiiie wants to merge 2 commits into
UsefulSoftwareCo:mainfrom
baggiiiie:fix/2087-linkedin-confidential-oauth

Conversation

@baggiiiie

@baggiiiie baggiiiie commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Summary

LinkedIn's standard confidential authorization-code flow rejects token exchanges that include code_verifier, but Executor adds PKCE to every authorization-code connection. this leaves valid LinkedIn client credentials failing with invalid_client during token exchange.

this change omits PKCE only for confidential clients using LinkedIn's standard HTTPS authorization endpoint. public clients, LinkedIn's native-PKCE endpoint, and other providers keep PKCE.

Note

NOTE: the same unconditional PKCE behavior also exists on v2 branch.

Linked issue

Fixes #2087

Verification

  • bun run format:check
  • bun run lint
  • bun run --cwd packages/core/sdk typecheck
  • bun run --cwd packages/core/sdk test — 64 test files, 947 tests passed

Checklist

  • Added a changeset (bun run changeset), or this change needs none.
  • Added or updated tests for the new behaviour.
  • No secrets, credentials, or private data in the diff.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LinkedIn confidential OAuth fails when token request includes code_verifier

1 participant