From bc2b0aaa2c5a00173607ccdaea0fbe5b27912a52 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Fri, 8 Aug 2025 23:16:35 +0200 Subject: [PATCH] minor config / testing fixes --- demo/config.py | 6 +++--- scopes/tests/config.py | 1 - scopes/tests/data_auth.py | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/demo/config.py b/demo/config.py index 00370d2..1e06cd3 100644 --- a/demo/config.py +++ b/demo/config.py @@ -29,7 +29,7 @@ dbschema = getenv('DBSCHEMA', 'demo') # authentication settings oidc_provider = getenv('OIDC_PROVIDER', 'https://a1.cy7.de') -oidc_client_id = getenv('OIDC_CLIENT_ID', '311613119816392525') +oidc_client_id = getenv('OIDC_CLIENT_ID', '12345') oidc_params = dict( op_config_url=oidc_provider + '/.well-known/openid-configuration', op_uris=None, @@ -42,7 +42,7 @@ oidc_params = dict( cookie_lifetime=getenv('OIDC_COOKIE_LIFETIME', '86400'), cookie_crypt=getenv('OIDC_COOKIE_CRYPT', None), private_key_file=getenv('OIDC_SERVICE_USER_PRIVATE_KEY_FILE', '.private-key.json'), - organization_id=getenv('OIDC_ORGANIZATION_ID', '311473502274248525'), - project_id=getenv('OIDC_PROJECT_ID', '311473502274248525'), + organization_id=getenv('OIDC_ORGANIZATION_ID', '12346'), + project_id=getenv('OIDC_PROJECT_ID', '12347'), ) diff --git a/scopes/tests/config.py b/scopes/tests/config.py index 2e54bf5..81eb248 100644 --- a/scopes/tests/config.py +++ b/scopes/tests/config.py @@ -38,7 +38,6 @@ from scopes.tests import data_auth # add oidc URIs and keys to dummy_requests da from scopes.tests import dummy_requests sys.modules['requests'] = dummy_requests - # authentication settings oidc_provider = 'test://oidc' oidc_client_id = getenv('OIDC_CLIENT_ID', '12345') diff --git a/scopes/tests/data_auth.py b/scopes/tests/data_auth.py index d6d8eb3..643fc2c 100644 --- a/scopes/tests/data_auth.py +++ b/scopes/tests/data_auth.py @@ -31,7 +31,6 @@ oidc_data = { "access_token": "abcde12345"}, 'test://oidc/v2/users/human': { "code": 1} - } } from scopes.tests.dummy_requests import response_data