- Dependencies are now use >=, so everything should be fine.
- Examples for Swagger (OpenAPI) authorization
- Dependencies are updated to latest, but somebody (Me) done it wrong, would be fixed in 0.6.4
- OpenAPI now shows field for auth token. Thx to @SunnyCapt
from async_fastapi_jwt_auth.auth_jwt import AuthJWT, AuthJWTBearer
from fastapi import Depends
auth_dep = AuthJWTBearer()
@app.get("/protected")
async def protected(Authorize: AuthJWT = Depends(auth_dep)):
await Authorize.jwt_required()
return {"success": True}
- Fix CHANGELOG.md, test action
- Now you can use this lib with async!
- Support for WebSocket authorization (Thanks to @SelfhostedPro for make issues)
- Function get_raw_jwt() can pass parameter encoded_token
- Support set and unset cookies when returning a Response directly
- (Deprecated) environment variable support
- Change name function load_end() -> load_config()
- Change name function get_jwt_identity() -> get_jwt_subject()
- Change name identity claims to standard claims sub (Thanks to @rassie for suggestion)
- Additional headers in claims
- Get additional headers claims from request or parsing token directly
- Leeway exp claim decode token
- Dynamic token expires time
- Change name blacklist -> denylist
- Denylist custom check refresh and access tokens
- Issuer claim
- Audience claim
- Jwt decode algorithms
- Dynamic algorithm create token
- Token multiple location
- Support RSA encryption (Thanks to @jet10000 for make issues)
- Custom header name and type
- Custom error message key and status code
- JWT in cookies (Thanks to @m4nuC for make issues)
- Add Additional claims
- Add Documentation PR #9 by @paulussimanjuntak
- Call create_token and get_jti function must be from dependency injection
- Improve blacklist loader
- Can load env from pydantic
- Add docs on readme how to use without dependency injection and example on multiple files
- Fix raise jwt exception PR #1 by @ironslob