fastapi-jwt-auth

FastAPI extension that provides JWT Auth support (secure, easy to use, and lightweight)

MIT License

Downloads
80.8K
Stars
642
Committers
4

Bot releases are hidden (Show)

fastapi-jwt-auth - Latest Release

Published by IndominusByte almost 4 years ago

  • Support for WebSocket authorization (Thanks to @SelfhostedPro for make issues)
  • Function get_raw_jwt() can pass parameter encoded_token
fastapi-jwt-auth -

Published by IndominusByte almost 4 years ago

  • Support set and unset cookies when returning a Response directly
fastapi-jwt-auth -

Published by IndominusByte almost 4 years ago

  • (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 (#9 by @paulussimanjuntak)
fastapi-jwt-auth -

Published by IndominusByte about 4 years ago

  • 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
fastapi-jwt-auth -

Published by IndominusByte about 4 years ago

  • Access token and refresh token
  • Token freshness will only allow fresh tokens to access endpoint
  • Token revoking/blacklisting
  • Custom token revoking
Package Rankings
Top 1.89% on Pypi.org
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
Coverage Status PyPI version Downloads
Related Projects