Skip to content

v0.0.1

Choose a tag to compare

@rb58853 rb58853 released this 26 Aug 14:23
· 15 commits to main since this release

Start Project

  • 馃攼 Token-based authentication system (Access + Refresh) with endpoints ready: check the /auth router and the /token/new and /token/refresh endpoints in auth.py.
  • 鈿欙笍 Easy integration with FastAPI: function set_auth(app) applies middleware, registers routes and replaces the OpenAPI with FastauthOpenAPI.
  • 馃洝 Configurable middleware: Master / Access level protection based on routes defined in the configuration. Supports validation of MASTER-TOKEN and ACCESS-TOKEN headers.
  • 馃Ь Flexible configuration: values from fastauth.config.json or environment variables (.env).
  • 馃攽 Basic key management and utilities:
    • Generate CRYPTOGRAPHY_KEY with generate_cryptography_key().
    • Read/write variables in .env using writekey2env(...).
  • 馃 JWT tokens signed with HS256 and payloads containing client_id, type, iat, exp.
  • 馃捑 Decoupled token persistence: save_token / load_access_token interact with an external API configurable via "database-api-path" in the configuration file.
  • 馃攲 WebSocket support: authentication decorator for websockets (checks ACCESS-TOKEN in headers).
  • 馃О Extensible: TokenRouter can be extended to customize token generation/renewal; middleware and OpenAPI are easily replaceable/adjustable.