Skip to content

Properly validate auth during refresh#3847

Merged
matthieusieben merged 85 commits into
mainfrom
msi/oauth-client-auth-fixes
Jun 12, 2025
Merged

Properly validate auth during refresh#3847
matthieusieben merged 85 commits into
mainfrom
msi/oauth-client-auth-fixes

Conversation

@matthieusieben

@matthieusieben matthieusieben commented May 10, 2025

Copy link
Copy Markdown
Contributor

Ensure that the credentials used during a refresh correspond to those used to create the OAuth tokens.

Warning

This introduces a breaking change for clients that declared multiple keys in their JWKS over time, and that do not re-use the same kid when refreshing sessions.

This includes clients built on top of our @atproto/oauth-client package.

Note that spec compliant clients should be unaffected.

@matthieusieben
matthieusieben marked this pull request as draft May 10, 2025 09:16
Comment thread packages/oauth/oauth-client/src/oauth-server-factory.ts
@matthieusieben
matthieusieben marked this pull request as ready for review May 15, 2025 12:39
Comment thread packages/oauth/oauth-provider/src/client/client-auth-check.ts Outdated
Comment thread packages/oauth/oauth-client-node/src/node-dpop-store.ts
Comment thread packages/oauth/oauth-client/src/oauth-client-auth.ts Outdated
Comment thread packages/oauth/oauth-client/src/oauth-client-auth.ts
Comment thread packages/oauth/oauth-client/src/oauth-client.ts
Comment thread .changeset/quiet-pans-fix.md Outdated
Comment thread packages/oauth/oauth-provider/src/client/client-auth-check.ts Outdated
matthieusieben and others added 2 commits May 20, 2025 13:30
Co-authored-by: devin ivy <devinivy@gmail.com>
Comment thread packages/oauth/oauth-provider/src/request/request-manager.ts Outdated
Comment thread packages/oauth/oauth-provider/src/request/request-store-redis.ts Outdated
Comment thread packages/oauth/oauth-provider/src/request/request-store-redis.ts Outdated
Comment thread packages/oauth/oauth-provider/src/token/validate-refresh-token.ts Outdated
Comment thread packages/oauth/oauth-provider/src/token/validate-refresh-token.ts Outdated
Comment thread packages/oauth/oauth-provider/src/token/token-manager.ts Outdated
Comment thread packages/oauth/oauth-provider/src/token/token-manager.ts Outdated
Comment thread packages/oauth/oauth-provider/src/oauth-provider.ts
@matthieusieben
matthieusieben merged commit 349b591 into main Jun 12, 2025
10 checks passed
@matthieusieben
matthieusieben deleted the msi/oauth-client-auth-fixes branch June 12, 2025 13:10
@github-actions github-actions Bot mentioned this pull request Jun 12, 2025
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.

4 participants