Release Notes
Async fork 0.6.4¶
- Dependencies are now use >=, so everything should be fine.
- Examples for Swagger (OpenAPI) authorization
Async fork 0.6.3¶
- Dependencies are updated to latest, but somebody (Me) done it wrong, would be fixed in 0.6.4
Async fork 0.6.2¶
- 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}
Async fork 0.6.1¶
- Fix CHANGELOG.md, test action
Async fork 0.6.0¶
- Poetry, Pydantic 2.0
Async fork 0.5.0¶
- Now you can use this lib with async!
0.5.0¶
- Support for WebSocket authorization (Thanks to @SelfhostedPro for make issues)
- Function get_raw_jwt() can pass parameter encoded_token
0.4.0¶
- Support set and unset cookies when returning a Response directly
0.3.0¶
- (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
0.2.0¶
- 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
0.1.0¶
- Initial release.