Releases: intility/fastapi-azure-auth
Releases · intility/fastapi-azure-auth
5.2.0 - add customizable scheme names for OpenAPI documentation
What's Changed
- chore(deps): bump actions/cache from 4.2.2 to 4.2.3 by Dependabot (@dependabot)[bot] in #239
- feat: add customizable scheme names for OpenAPI documentation by Rhuan Barreto (@rhuanbarreto) in #248
- chore: release new minor version 5.2.0 by @Copilot in #250
New Contributors
- Rhuan Barreto (@rhuanbarreto) made their first contribution in #248
- @Copilot made their first contribution in #250
Full Changelog: 5.1.1...5.2.0
5.1.1 - Authentication parameters from WWW-Authenticate headers
What's Changed
- chore(deps): bump actions/cache from 4.2.0 to 4.2.2 by Dependabot (@dependabot) in #235
- Add support for extracting authentication params from www-authenticate header by romaindup in #237
New Contributors
Full Changelog: 5.1.0...5.1.1
5.1.0 - Better exception handling and status codes
What's Changed
- feat: exceptions for auth errors 400, 401, 403 by David Huser (@davidhuser) in #230
- docs: updates docs to reflect latest changes on Azure Entra ID by Alejandro (@dansmachina) in #212
- chore(deps): bump actions/cache from 4.0.2 to 4.1.2 by Dependabot (@dependabot) in #216
- chore(deps): bump actions/cache from 4.1.2 to 4.2.0 by Dependabot (@dependabot) in #222
- chore(deps): bump codecov/codecov-action from 4 to 5 by Dependabot (@dependabot) in #219
- Add missing import by Imaduddin A Majid (@imaduddinamajid) in #225
- Update fastapi_configuration.mdx by semyon (@semyonsh) in #227
New Contributors
- Alejandro (@dansmachina) made their first contribution in #212
- Imaduddin A Majid (@imaduddinamajid) made their first contribution in #225
- semyon (@semyonsh) made their first contribution in #227
Full Changelog: 5.0.1...5.1.0
5.0.1 - Fix support for Python 3.9 and 3.10
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 Jonas Krüger Svensson (@JonasKs) )
- Pydantic v1 support dropped. Deprecation warnings fixed, closes #150 ( #200 Jonas Krüger Svensson (@JonasKs) )
InvalidAuthnow takes detail AND request object. ( #200 Jonas Krüger Svensson (@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 requestsDocs:
- Use lifetimes instead of scopes ( #200 Jonas Krüger Svensson (@JonasKs) )
- How to ensure only certain roles can access APIs, closing #117 ( #200 Jonas Krüger Svensson (@JonasKs) )
- No need for redirect URL #72 (comment), closed in #202 ( #202 Jonas Krüger Svensson (@JonasKs) )
Feat:
- Add support for WebSockets, closes #191, #155 ( #200 Jonas Krüger Svensson (@JonasKs) )
Fix:
- Empty raise, closes #192 ( #2020 Jonas Krüger Svensson (@JonasKs) )
Full Changelog: 4.4.0...5.0.0
5.0.0-rc0
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 Jonas Krüger Svensson (@JonasKs) )
- Pydantic v1 support dropped. Deprecation warnings fixed, closes #150 ( #200 Jonas Krüger Svensson (@JonasKs) )
InvalidAuthnow takes detail AND request object. ( #200 Jonas Krüger Svensson (@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 requestsDocs:
- Use lifetimes instead of scopes ( #200 Jonas Krüger Svensson (@JonasKs) )
- How to ensure only certain roles can access APIs, closing #117 ( #200 Jonas Krüger Svensson (@JonasKs) )
- No need for redirect URL #72 (comment), closed in #202 ( #202 Jonas Krüger Svensson (@JonasKs) )
Feat:
- Add support for WebSockets, closes #191, #155 ( #200 Jonas Krüger Svensson (@JonasKs) )
Fix:
- Empty raise, closes #192 ( #2020 Jonas Krüger Svensson (@JonasKs) )
Full Changelog: 4.4.0...5.0.0-rc0
4.4.0
What's Changed
- Migrate from python-jose to PyJWT by David Lilue (@dvdalilue) in #194
- This resolves GHSA-6c5p-j8vq-pqhj, thank you so much David Lilue (@dvdalilue).
Other
- chore(deps): bump actions/cache from 4.0.1 to 4.0.2 by Dependabot (@dependabot) in #190
- chore(deps): bump peaceiris/actions-gh-pages from 3 to 4 by Dependabot (@dependabot) in #193
New Contributors
- David Lilue (@dvdalilue) made their first contribution in #194
Full Changelog: 4.3.1...4.4.0
4.3.1 - Minor fixes
What's Changed
- fix #180 change acct claim type from str to int by Xiang ZHU (@copdips) in #181
- chore(deps): bump actions/setup-python from 4 to 5 by Dependabot (@dependabot) in #175
- chore(deps): bump actions/cache from 3.3.2 to 4.0.1 by Dependabot (@dependabot) in #183
- chore(deps): bump codecov/codecov-action from 3 to 4 by Dependabot (@dependabot) in #184
- Bump version by Jonas Krüger Svensson (@JonasKs) in #185
New Contributors
- Xiang ZHU (@copdips) made their first contribution in #181
Full Changelog: 4.3.0...4.3.1
4.3.0 - Small improvements and lots of documentation
What's Changed
- doc: add B2C user docs by David Huser (@davidhuser) in #140
- docs: rewrite single-tenant docs to be pydantic2 first by Jonas Krüger Svensson (@JonasKs) in #153
- chore(deps): bump actions/cache from 3.3.1 to 3.3.2 by Dependabot (@dependabot) in #151
- chore(deps): bump actions/checkout from 3 to 4 by Dependabot (@dependabot) in #152
- doc: add troubleshooting page with logging section by David Huser (@davidhuser) in #163
- doc: add example to call APIs via B2C by David Huser (@davidhuser) in #162
- parse auth_time as an int by roman-van-der-krogt in #167
- Add scope to documentation by Nik Stuckenbrock (@nikstuckenbrock) in #159
- configurable leeway by Tejas Mehta (@mehtatejas) in #165
New Contributors
- roman-van-der-krogt made their first contribution in #167
- Nik Stuckenbrock (@nikstuckenbrock) made their first contribution in #159
- Tejas Mehta (@mehtatejas) made their first contribution in #165
Full Changelog: 4.2.1...4.3.1
4.2.1 - Move dependencies
What's Changed
- move openapi-spec-validator and pydantic-settings to dev deps by Émile Nadeau (@enadeau) in #146
Full Changelog: 4.2.0...4.2.1