Skip to content

Commit

Permalink
Update Backend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatorelaiso committed Jul 28, 2023
1 parent ded3cb8 commit 44448e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pyeudiw/tests/satosa/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,13 @@ def test_request_endpoint(self, context):
msg = json.loads(request_endpoint.message)
assert msg["response"]

# TODO assertion su JWS decodificato
# ...
header = unpad_jwt_header(msg["response"])
payload = unpad_jwt_payload(msg["response"])
print()
print("header", header)
print("payload", payload)
assert header["alg"]
assert header["kid"]
assert payload["scope"] == " ".join(CONFIG["authorization"]["scopes"])
assert payload["client_id"] == CONFIG["metadata"]["client_id"]
assert payload["response_uri"] == CONFIG["metadata"]["redirect_uris"][0]

def test_handle_error(self, context):
error_message = "Error message!"
Expand Down

0 comments on commit 44448e0

Please sign in to comment.