fastapi-azure-auth

Easy and secure implementation of Azure Entra ID (previously AD) for your FastAPI APIs 🔒 B2C, single- and multi-tenant support.

MIT License

Downloads
144.1K
Stars
446
Committers
15

Bot releases are hidden (Show)

fastapi-azure-auth - 5.0.1 - Fix support for Python 3.9 and 3.10

Published by JonasKs 2 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/Intility/fastapi-azure-auth/compare/5.0.0...5.0.1

fastapi-azure-auth - 5.0.0 Latest Release

Published by JonasKs 2 months ago

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:

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

fastapi-azure-auth - 5.0.0-rc0

Published by JonasKs 3 months ago

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:

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-rc0

fastapi-azure-auth - 4.4.0

Published by JonasKs 5 months ago

What's Changed

Other

New Contributors

Full Changelog: https://github.com/Intility/fastapi-azure-auth/compare/4.3.1...4.4.0

fastapi-azure-auth - 4.3.1 - Minor fixes

Published by JonasKs 8 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/Intility/fastapi-azure-auth/compare/4.3.0...4.3.1

fastapi-azure-auth - 4.3.0 - Small improvements and lots of documentation

Published by JonasKs 12 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/Intility/fastapi-azure-auth/compare/4.2.1...4.3.1

fastapi-azure-auth - 4.2.1 - Move dependencies

Published by JonasKs about 1 year ago

What's Changed

Full Changelog: https://github.com/Intility/fastapi-azure-auth/compare/4.2.0...4.2.1

fastapi-azure-auth - 4.2.0 - Pydantic 2 support

Published by JonasKs about 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/Intility/fastapi-azure-auth/compare/4.1.3...4.2.0

fastapi-azure-auth - 4.1.3 - Fix optional claims

Published by JonasKs over 1 year ago

fastapi-azure-auth - 4.1.2 - Fix optional claims

Published by JonasKs over 1 year ago

fastapi-azure-auth - 4.1.1 - Fix default value for `scp` on the User object

Published by JonasKs over 1 year ago

fastapi-azure-auth - 4.1.0 - Add all claims to user object

Published by JonasKs over 1 year ago

Summary

All claims have now been added to the user object.

Commits

New Contributors

Thank you so much, both of you 😊

Full Changelog: https://github.com/Intility/fastapi-azure-auth/compare/4.0.0...4.1.0

fastapi-azure-auth - 4.0.0 - Breaking change: Deny guest users by default

Published by JonasKs over 1 year ago

Breaking change

Single- and multi-tenant applications now have a default setting that denies guest users access to the APIs. The documentation has been updated, please read it if you'd like to override this setting, or have different settings for different endpoints.

Note: B2C tenants allow guest users by default, as all users will be guest users.

Changes

New Contributors

Full Changelog: https://github.com/Intility/fastapi-azure-auth/compare/3.5.1...4.0.0

fastapi-azure-auth - 3.5.1 - Support python 3.11

Published by JonasKs almost 2 years ago

Changes

New Contributors

Full Changelog: https://github.com/Intility/fastapi-azure-auth/compare/3.5.0...3.5.1

fastapi-azure-auth - 3.5.0 - Better B2C support

Published by JonasKs over 2 years ago

Features:

  • B2CMultiTenantAuthorizationCodeBearer class which simplifies a multi-tenant B2C setup. ( #93 @kristiqntashev )

Fix:

  • Make tid optional in the User model to support tokens sent from a B2C single-tenant ( #96 @marcinplatek )

Github actions:

  • Fix caching ( @jonasks )
fastapi-azure-auth - 3.4.0 - Support Python 3.8

Published by JonasKs over 2 years ago

Features

  • Support Python3.8. ( #75, @manupatel007 ) 🚀
fastapi-azure-auth - 3.3.0 - Support B2C tenants

Published by JonasKs over 2 years ago

Features

  • Add setting to specify openid_config_url in AzureAuthorizationCodeBearerBase to add support for B2C tenants. ( #48 @robteeuwen and @JonasKs )
  • Use python-jose to load JWK, instead of x5c-keys loaded with cryptography. This add support for B2C tenants ( #48 @robteeuwen and @JonasKs )

Other

  • Rewrite tests and clean up code ( #48 @JonasKs )
fastapi-azure-auth - 3.2.2 - Loosen cryptography version requirement

Published by JonasKs over 2 years ago

Fixes

  • Loosen cryptography version requirement, adding support for cryptography version 36, and future major bumps. ( @JonasKs, 63868904e9c7c2f3da31cdeefebec4884da402b4)
fastapi-azure-auth - 3.2.1 - Callable typing bugfix for Python3.9.0 and 3.9.1

Published by JonasKs over 2 years ago

Bugfix

  • Python3.9.0 and Python3.9.1 has a bug with collections.abc.Callable, so this typing import has been changed to typing.Callable ( @ravaszf and @JonasKs #50 )
fastapi-azure-auth - 3.2.0 - Auto_error flag

Published by JonasKs almost 3 years ago

Features

  • auto_error flag/setting. When set to False an invalid token will return None instead of raising exception. ( @bkmetzler and @JonasKs #44 )
    • This flag allows end users to configure multiple authentication paths, and reflects authentication classes shipped by FastAPI.
Package Rankings
Top 3.85% on Pypi.org
Related Projects