python3: encode oidc authn test claims (#32452)

This commit is contained in:
Paul Marillonnet 2019-04-10 15:52:39 +02:00
parent 1f19c39df9
commit 45ef1177b7
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@ def test_required_keys(db, oidc_provider, header, signature, caplog):
'iat': 1311280970,
'exp': 1311281970, # Missing 'aud' and 'nonce' required claims
'extra_stuff': 'hi there', # Wrong claim
}))
}).encode('ascii'))
with pytest.raises(IDTokenError):
with utils.check_log(caplog, 'missing field'):