-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
I am encountering repeated 403 Forbidden errors when using the fastapi-clerk-middleware package. The server starts successfully, but all requests to protected endpoints return a 403 Forbidden response.
Logs / Error Output
2025-09-04 15:25:30,430 - asyncio - DEBUG - Using selector: KqueueSelector
INFO: Started server process [97243]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: 127.0.0.1:64721 - "GET /linkedin/profile/user_32EhNkeDyCdTJcNU3ArYWRm700c HTTP/1.1" 403 Forbidden
INFO: 127.0.0.1:64721 - "GET /linkedin/profile/user_32EhNkeDyCdTJcNU3ArYWRm700c HTTP/1.1" 403 Forbidden
INFO: 127.0.0.1:64726 - "POST /linkedin/profile HTTP/1.1" 403 Forbidden
INFO: 127.0.0.1:64743 - "GET /linkedin/profile/user_32EhNkeDyCdTJcNU3ArYWRm700c HTTP/1.1" 403 Forbidden
INFO: 127.0.0.1:64743 - "GET /linkedin/profile/user_32EhNkeDyCdTJcNU3ArYWRm700c HTTP/1.1" 403 Forbidden
Steps to Reproduce
- Installed
fastapi-clerk-middlewareusing these "fastapi>=0.116.1", "fastapi-clerk-auth>=0.0.7",. - Configured the middleware with my Clerk API keys.
- Started FastAPI server.
- Tried accessing endpoints (e.g.,
GET /linkedin/profile/{id}andPOST /linkedin/profile). - All requests return
403 Forbidden.
Expected Behavior
Authenticated requests should be authorized correctly and return the appropriate response instead of 403 Forbidden.
Environment
- OS: macOS (using KqueueSelector)
Metadata
Metadata
Assignees
Labels
No labels