Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V5 release #201

Closed
JonasKs opened this issue Jul 13, 2024 · 0 comments
Closed

V5 release #201

JonasKs opened this issue Jul 13, 2024 · 0 comments

Comments

@JonasKs
Copy link
Member

JonasKs commented Jul 13, 2024

V5 will be released at the end of the month. Please let me know if there's any features, docs or changes you'd like before then.

Pre-release can be found here. Install by pip install "fastapi-azure-auth==5.0.0-rc0"


(Most of these implemented in #200)

Breaking changes:

  • Azure Entra (previously Active Directory) v1 token support dropped. This is mainly to reduce tests by 30%, and for a use-case I haven't documented, nor recommend anyone to use. If you're on v1 tokens, you should upgrade.
  • Pydantic v1 support dropped. Deprecation warnings fixed, closes [Feature request] support Pydantic v2 syntax / @validator -> @field_validator #150
  • InvalidAuth now takes detail AND request object. Users should be explicit and use InvalidAuthHttp or InvalidAuthWebSocket if they use this class. Example:
-raise InvalidAuth(detail="Missing admin role")
+raise InvalidAuthHttp(detail="Missing admin role")  # for HTTP requests
+raise InvalidAuthWebSocket(detail="Missing admin role")  # for WebSocket requests

Docs:

Feat:

Fix:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant