Repository navigation
Use the SDK User-Agent when verifying API keys - #10358
umeraamir69 wants to merge 1 commit into
Conversation
authenticateRequest forwards the incoming request User-Agent into the Backend API client, and Python urllib clients then get 403 on api_keys/verify.
🦋 Changeset detectedLatest commit: 2663119 The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@umeraamir69 is attempting to deploy a commit to the Clerk Production Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Fixes #10352
authenticateRequestpasses the incoming request's User-Agent intocreateBackendApiClient.verifyAPIKeythen sends that header to Backend API, so a Python urllib client (Python-urllib/3.11) gets HTML 403 instead of a JSON verify response.This keeps the SDK User-Agent on that outbound call only.
Test plan
userAgent: Python-urllib/3.11still sends@clerk/backend@…