This repository was archived by the owner on Feb 18, 2024. It is now read-only.
Releases: Colin-b/layabauth
Releases · Colin-b/layabauth
7.0.0 (2023-04-26)
Changed
- Drop support for python
3.6 - Add support for python
3.11 - Update
flask-restxversion from0.5.*to1.1.*. - Update
httpxversion from0.21.*to0.24.*. - Update
pytest-httpxversion from0.15.*to0.22.*.
6.0.0 (2021-12-10)
Changed
- Update
httpxversion from0.17.*to0.21.*.
5.1.0 (2021-03-01)
Changed
- Update
httpxversion from0.16.*to0.17.* - Update
pytest-httpxversion from0.10.*to0.11.*. - Update
starletteversion from0.13.*to0.14.*.
5.0.1 (2020-11-17)
Added
- Add explicit support for python
3.9.
Changed
- Update
blackversion frommasterto20.8b1. - Use
httpxinstead ofrequeststo query keys. - Testing mock does not rely on
pytest-responsesanymore.
Fixed
- Verify SSL certificate by default.
5.0.0 (2020-05-29)
Changed
- layabauth.authorizations now requires scopes to be provided as a dictionary inside scopes parameter instead of kwargs.
Fixed
- Allow to provide scopes that cannot be stored as python variables (such as names containing
.(dots) or-(minus) symbols).
Added
layabauth.flask.requires_scopesfunction to ensure that expected scopes are received.
4.0.1 (2020-04-28)
Fixed
- Drop oauth2helper in favor of python-jose to handle all kind of tokens.
Changed
identity_provider_urlhas been renamed tojwks_urito match the key in .well-knownjwks_uripytest fixture needs to be provided in addition totoken_body.- Flask tests will require a fake token to be provided in headers (unless you want to test behavior without providing a token).
4.0.0 (2020-04-20)
Changed
- Flask specifics are now within layabauth.flask.
- flask.g.current_user does not exists, instead, the validated token and the decoded token body are available in flask.g.token and flask.g.token_body
upnfield is not expected in token anymore. It is now up to the user to select what information they want to extract from the decoded token body.UserIdFilterclass now requirestoken_field_nameparameter to know what token body field value must be set insideuser_id.auth_mockfixture now expectstoken_bodyfixture providing the decoded token body instead ofupnfixture.
3.2.0 (2019-12-02)
Added
- Initial release.