From 6e42da58dddab2be5b10700ae779ec87fc6bb482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ou=C5=A1ek?= Date: Tue, 19 Oct 2021 10:40:59 +0200 Subject: [PATCH 1/2] docs: fix add_claims_by_scope re #142 --- docs/source/contents/conf.rst | 2 +- example/flask_op/config.json | 2 +- example/flask_op/config.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/contents/conf.rst b/docs/source/contents/conf.rst index 92e97711..e5450105 100644 --- a/docs/source/contents/conf.rst +++ b/docs/source/contents/conf.rst @@ -571,7 +571,7 @@ An example:: "phone_number", "phone_number_verified" ], - "add_claim_by_scope": true, + "add_claims_by_scope": true, "aud": ["https://example.org/appl"] } }, diff --git a/example/flask_op/config.json b/example/flask_op/config.json index 36bded78..1f0fb783 100644 --- a/example/flask_op/config.json +++ b/example/flask_op/config.json @@ -311,7 +311,7 @@ "phone_number", "phone_number_verified" ], - "add_claim_by_scope": true, + "add_claims_by_scope": true, "aud": [ "https://example.org/appl" ] diff --git a/example/flask_op/config.yaml b/example/flask_op/config.yaml index 00efd4b8..b79a5fc9 100644 --- a/example/flask_op/config.yaml +++ b/example/flask_op/config.yaml @@ -88,7 +88,7 @@ op: - email_verified - phone_number - phone_number_verified - add_claim_by_scope: True + add_claims_by_scope: True aud: - https://example.org/appl refresh: From 24695a4a471cf39da33e6cd446ef79948e3df57d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ou=C5=A1ek?= Date: Tue, 19 Oct 2021 10:41:50 +0200 Subject: [PATCH 2/2] test: fix add_claims_by_scope closes #142 --- tests/op_config.json | 2 +- tests/op_config_defaults.py | 2 +- tests/srv_config.yaml | 2 +- tests/test_06_session_manager.py | 2 +- tests/test_08_session_life.py | 2 +- tests/test_40_oauth2_pushed_authorization.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/op_config.json b/tests/op_config.json index 47d2fd72..af959286 100644 --- a/tests/op_config.json +++ b/tests/op_config.json @@ -325,7 +325,7 @@ "phone_number", "phone_number_verified" ], - "add_claim_by_scope": true, + "add_claims_by_scope": true, "aud": [ "https://example.org/appl" ] diff --git a/tests/op_config_defaults.py b/tests/op_config_defaults.py index 429b42ec..e3d73f0e 100644 --- a/tests/op_config_defaults.py +++ b/tests/op_config_defaults.py @@ -133,7 +133,7 @@ "kwargs": { "lifetime": 3600, "add_claims": ["email", "email_verified", "phone_number", "phone_number_verified",], - "add_claim_by_scope": True, + "add_claims_by_scope": True, "aud": ["https://example.org/appl"], }, }, diff --git a/tests/srv_config.yaml b/tests/srv_config.yaml index fc63798d..5593c7ca 100644 --- a/tests/srv_config.yaml +++ b/tests/srv_config.yaml @@ -96,7 +96,7 @@ op: - email_verified - phone_number - phone_number_verified - add_claim_by_scope: True + add_claims_by_scope: True aud: - https://example.org/appl refresh: diff --git a/tests/test_06_session_manager.py b/tests/test_06_session_manager.py index eaa189e8..054c3c96 100644 --- a/tests/test_06_session_manager.py +++ b/tests/test_06_session_manager.py @@ -56,7 +56,7 @@ def create_session_manager(self): "kwargs": { "lifetime": 3600, "add_claims": True, - "add_claim_by_scope": True, + "add_claims_by_scope": True, "aud": ["https://example.org/appl"], }, }, diff --git a/tests/test_08_session_life.py b/tests/test_08_session_life.py index bb29fdff..729f7dbc 100644 --- a/tests/test_08_session_life.py +++ b/tests/test_08_session_life.py @@ -269,7 +269,7 @@ def setup_session_manager(self): "phone_number", "phone_number_verified", ], - "add_claim_by_scope": True, + "add_claims_by_scope": True, "aud": ["https://example.org/appl"], }, }, diff --git a/tests/test_40_oauth2_pushed_authorization.py b/tests/test_40_oauth2_pushed_authorization.py index 56ef1d2d..fe60c38f 100644 --- a/tests/test_40_oauth2_pushed_authorization.py +++ b/tests/test_40_oauth2_pushed_authorization.py @@ -95,7 +95,7 @@ def create_endpoint(self): "phone_number", "phone_number_verified", ], - "add_claim_by_scope": True, + "add_claims_by_scope": True, "aud": ["https://example.org/appl"], }, },