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:
diff
-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 https://github.com/Intility/fastapi-azure-auth/issues/72#issuecomment-2226801501, closed in 202 ( 202 JonasKs )
Feat:
- Add support for WebSockets, closes 191, 155 ( 200 JonasKs )
Fix:
- Empty raise, closes 192 ( 2020 JonasKs )
**Full Changelog**: https://github.com/Intility/fastapi-azure-auth/compare/4.4.0...5.0.0