python3: encode oidc authn test claims (#32452)
This commit is contained in:
parent
1f19c39df9
commit
45ef1177b7
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue