Changelog#

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]#

Changed#

  • pytest-iam requires Canaille 0.4.3 and pytest 7.3.2.

  • Groups must have at least one member.

  • Server.random_group adds a new random user as the member when members is not given.

[0.4.0] - 2026-10-28#

Added#

  • Server.random_token accepts subject=None, to create a token that belongs to a client only.

  • The IAM server serves a SCIM API, with the scim extra.

  • Server.mount serves the requests that the IAM server sends to a URL with a WSGI application, without network. It applies to the jwks_uri and request_uri of clients.

Changed#

  • pytest-iam requires Canaille 0.4.1.

  • The IAM server no longer reads the canaille.toml file, nor the file in CANAILLE_CONFIG.

  • A user logged in during a test, with Server.login or with the login form of Server.test_client, is logged out at the end of the test.

  • A user logged in with Server.login is logged out when the IAM server logs them out, for instance on its logout page.

Fixed#

  • Requests made with Server.test_client no longer share flask.g. A user logged in with the login form stayed logged in for all the following requests.

[0.3.0] - 2026-10-26#

Added#

  • Type annotations and a py.typed marker.

  • Support for Python 3.15.

Removed#

  • Support for Python 3.10.

Fixed#

  • Starting iam_server no longer disables the loggers of the tested project, nor changes the root logger configuration.

[0.2.6] - 2026-06-20#

Fixed#

  • Support for Canaille 0.3.0.

[0.2.5] - 2025-11-02#

Fixed#

  • Support for Canaille 0.0.87.

[0.2.4] - 2025-07-25#

Fixed#

  • fake_users and fake_groups was broken. #5

[0.2.3] - 2025-07-09#

Fixed#

  • Use in-memory agnostic database instead of SQLite.

[0.2.2] - 2025-06-25#

Fixed#

  • Support for Canaille 0.0.77.

[0.2.1] - 2025-06-06#

Fixed#

  • Support for Canaille 0.0.75.

[0.2.0] - 2025-04-24#

Added#

  • Implement test_client attribute.

  • Implement logout method.

  • Support for OIDC create prompt.

[0.1.1] - 2025-04-04#

Changed#

  • Update to Canaille 0.0.70.

  • Disable http access logs.

[0.1.0] - 2024-07-25#

Changed#

  • Update to Canaille 0.0.54. This break the way models are saved and deleted (iam_server.backend.save(user) instead of user.save()). Please check the documentation to see examples.

  • Documentation uses Shibuya theme.

[0.0.12] - 2024-04-22#

Changed#

  • Configuration is read from .pytest-iam.env

  • Configuration is read from environment vars prefixed by PYTEST_IAM_

[0.0.11] - 2024-04-22#

Changed#

  • Ignores local .env #3

Removed#

  • Stop Python 3.8 support

[0.0.10] - 2024-04-12#

Changed#

  • Move the repository to https://github.com/pytest-dev/pytest-iam

  • GHA support #1

[0.0.9] - 2024-03-30#

Added#

  • Canaille 0.0.44 support

[0.0.8] - 2024-03-14#

Added#

  • Loose dependency versions.

[0.0.7] - 2024-03-12#

Added#

  • Display Canaille debug logs by default.

[0.0.6] - 2024-01-24#

Fixed#

  • python <=3.8 incompatible typing

[0.0.5] - 2023-12-22#

Added#

  • iam_configuration fixture

[0.0.4] - 2023-12-15#

Fixed#

  • Ensure model instances are created within the Canaille application context.

[0.0.3] - 2023-08-31#

Added#

  • Documentation draft

  • Implement Server.random_token

  • Loose canaille dependency

[0.0.2] - 2023-08-21#

Added#

  • Implement Server.consent and Server.login

[0.0.1] - 2023-08-17#

Added#

  • Initial release