Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Releases: Colin-b/layabauth

7.0.0 (2023-04-26)

26 Apr 15:29
5d1f8cf

Choose a tag to compare

Changed

  • Drop support for python 3.6
  • Add support for python 3.11
  • Update flask-restx version from 0.5.* to 1.1.*.
  • Update httpx version from 0.21.* to 0.24.*.
  • Update pytest-httpx version from 0.15.* to 0.22.*.

6.0.0 (2021-12-10)

09 Dec 23:20
4a5abc0

Choose a tag to compare

Changed

  • Update httpx version from 0.17.* to 0.21.*.

5.1.0 (2021-03-01)

01 Mar 13:10
30f7dc1

Choose a tag to compare

Changed

  • Update httpx version from 0.16.* to 0.17.*
  • Update pytest-httpx version from 0.10.* to 0.11.*.
  • Update starlette version from 0.13.* to 0.14.*.

5.0.1 (2020-11-17)

17 Nov 10:20
cd53e0e

Choose a tag to compare

Added

  • Add explicit support for python 3.9.

Changed

  • Update black version from master to 20.8b1.
  • Use httpx instead of requests to query keys.
  • Testing mock does not rely on pytest-responses anymore.

Fixed

  • Verify SSL certificate by default.

5.0.0 (2020-05-29)

29 May 16:47
3f74e18

Choose a tag to compare

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_scopes function to ensure that expected scopes are received.

4.0.1 (2020-04-28)

28 Apr 11:55
fadb29f

Choose a tag to compare

Fixed

  • Drop oauth2helper in favor of python-jose to handle all kind of tokens.

Changed

  • identity_provider_url has been renamed to jwks_uri to match the key in .well-known
  • jwks_uri pytest fixture needs to be provided in addition to token_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)

20 Apr 12:10
4ecb3c8

Choose a tag to compare

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
  • upn field 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.
  • UserIdFilter class now requires token_field_name parameter to know what token body field value must be set inside user_id.
  • auth_mock fixture now expects token_body fixture providing the decoded token body instead of upn fixture.

3.2.0 (2019-12-02)

02 Dec 23:27

Choose a tag to compare

Added

  • Initial release.