File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[bumpversion]
2- current_version = 0.0.2
2+ current_version = 0.0.3
33commit = True
44tag = True
55
Original file line number Diff line number Diff line change 33
44FastAPI Auth Middleware for [ Clerk] ( https://clerk.com )
55
6+ Easily setup authentication on your API routes using your Clerk JWKS endpoint.
7+
68## Install
79``` bash
8- pip install fastapi-clerk
10+ pip install fastapi-clerk-auth
911```
1012
1113## Basic Usage
@@ -19,9 +21,9 @@ app = FastAPI()
1921
2022clerk_config = ClerkConfig(jwks_url = " https://example.com/.well-known/jwks.json" ) # Use your Clerk JWKS endpoint
2123
22- clear_auth_guard = ClerkHTTPBearer(config = clerk_config)
24+ clerk_auth_guard = ClerkHTTPBearer(config = clerk_config)
2325
2426@app.get (" /" )
25- async def read_root (credentials : HTTPAuthorizationCredentials | None = Depends(clear_auth_guard )):
27+ async def read_root (credentials : HTTPAuthorizationCredentials | None = Depends(clerk_auth_guard )):
2628 return JSONResponse(content = jsonable_encoder(credentials))
2729```
Original file line number Diff line number Diff line change 11[project ]
22name = " fastapi_clerk_auth"
3- version = " 0.0.2 "
4- description = " FastAPI Auth Middleware for [ Clerk] (https://clerk.com)"
3+ version = " 0.0.3 "
4+ description = " FastAPI Auth Middleware for Clerk (https://clerk.com)"
55readme = " README.md"
66requires-python = " >=3.9"
77authors = [
You can’t perform that action at this time.
0 commit comments