From b1558fa1594bb615a930ef5354b9dec7181b626d Mon Sep 17 00:00:00 2001 From: Mark Hobson Date: Fri, 6 Sep 2024 10:31:34 +0100 Subject: [PATCH] Remove unnecessary insecure transport for Authlib No longer required as the stub OIDC server runs on localhost, which is exempted by Authlib: https://github.com/lepture/authlib/blob/v1.3.2/authlib/common/security.py#L19 --- tests/e2e/conftest.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/e2e/conftest.py b/tests/e2e/conftest.py index 5998bc15..6cef684f 100644 --- a/tests/e2e/conftest.py +++ b/tests/e2e/conftest.py @@ -1,5 +1,4 @@ import multiprocessing -import os import socket import sys from typing import Any, Generator @@ -83,7 +82,6 @@ def app_client_fixture(live_server: LiveServer, api_key: str) -> Generator[AppCl @pytest.fixture(name="oidc_server_app", scope="package") def oidc_server_app_fixture() -> OidcServerApp: - os.environ["AUTHLIB_INSECURE_TRANSPORT"] = "true" port = _get_random_port() return oidc_server_create_app({"TESTING": True, "SERVER_NAME": f"localhost:{port}"})