def test_decode_token_different_public_key():
token, expiry = generate_token(CLIENT, SCOPE, 'grant_type')
with patch.object(_token, 'LOCALHOST_CRT', koi.CLIENT_CRT):
with pytest.raises(jwt.DecodeError):
decode_token(token)
评论列表
文章目录