5.0.0-rc0
Pre-release
Pre-release
This is a release candidate of 5.0.0.
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. ( #200 @JonasKs )
- Pydantic v1 support dropped. Deprecation warnings fixed, closes #150 ( #200 @JonasKs )
InvalidAuth
now takes detail AND request object. ( #200 @JonasKs ) 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:
- Use lifetimes instead of scopes ( #200 @JonasKs )
- How to ensure only certain roles can access APIs, closing #117 ( #200 @JonasKs )
- No need for redirect URL #72 (comment), closed in #202 ( #202 @JonasKs )
Feat:
Fix:
Full Changelog: 4.4.0...5.0.0-rc0