From 1c0a6e110d04bed4a80b877864f5bb9e73a52372 Mon Sep 17 00:00:00 2001 From: Stein A Sivertsen Date: Thu, 31 Oct 2024 12:02:56 +0100 Subject: [PATCH] adjust tests (#37) --- docs/content/ex-10.md | 2 +- ex-11/got-episodes-api-python/tests/core/test_core.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/content/ex-10.md b/docs/content/ex-10.md index 45ca18a..bfc1d3d 100644 --- a/docs/content/ex-10.md +++ b/docs/content/ex-10.md @@ -2,7 +2,7 @@ ## Protecting Web Api's -ADD Applications, Token Validation +EntraID Applications, Token Validation --- diff --git a/ex-11/got-episodes-api-python/tests/core/test_core.py b/ex-11/got-episodes-api-python/tests/core/test_core.py index 51bcdad..71bf98f 100644 --- a/ex-11/got-episodes-api-python/tests/core/test_core.py +++ b/ex-11/got-episodes-api-python/tests/core/test_core.py @@ -56,6 +56,10 @@ def test_get_claims_options(patchenv): expected_claims_options = { "iss": {"essential": True, "value": f"https://sts.windows.net/{os.environ['TENANT_ID']}/",}, "aud": {"essential": True, "value": f"{os.environ['EPISODES_API_URI']}"}, + "exp": { "essential": True }, + "nbf": { "essential": True }, + "iat": { "essential": True }, + "scp": { "essential": True } } result_claims_options = get_claims_options() assert result_claims_options == expected_claims_options