python3: oidc authn test jwk encoding

This commit is contained in:
Paul Marillonnet 2019-04-10 18:33:12 +02:00
parent b4ae98963d
commit 066341c883
1 changed files with 2 additions and 1 deletions

View File

@ -194,9 +194,10 @@ def oidc_provider_mock(oidc_provider, oidc_provider_jwkset, code, extra_id_token
else:
jwt = JWT(header={'alg': 'HS256'},
claims=id_token)
k = base64url_encode(oidc_provider.client_secret.encode('utf-8'))
jwt.make_signed_token(
JWK(kty='oct',
k=base64url_encode(oidc_provider.client_secret.encode('utf-8'))))
k=k.decode('ascii')))
content = {
'access_token': '1234',