Skip to content

Commit

Permalink
adjust tests (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
steinsiv authored Oct 31, 2024
1 parent d3699c0 commit 1c0a6e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/ex-10.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Protecting Web Api's

ADD Applications, Token Validation
EntraID Applications, Token Validation

---

Expand Down
4 changes: 4 additions & 0 deletions ex-11/got-episodes-api-python/tests/core/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1c0a6e1

Please sign in to comment.