Skip to content

v0.11.0

Compare
Choose a tag to compare
@frankie567 frankie567 released this 20 May 12:22
· 82 commits to main since this release
8469bf8

New features

  • FastAPI integration: a new dependency current_user is introduced. It checks the validity of the access token and return FiefUserInfo dictionary.
    • Mechanisms are available to implement user information caching
    • [Documentation]
  • Flask integration: a new decorator current_user is introduced. It checks the validity of the access token and sets g.user, a FiefUserInfo dictionary.
    • Mechanisms are available to implement user information caching
    • [Documentation]

Breaking changes

  • FastAPI integration: the existing dependency current_user is renamed authenticated. It still returns a FiefAccessTokenInfo.
  • Flask integration: the existing decorator current_user is renamed authenticated. It now sets g.access_token_info, a FiefAccessTokenInfo.