Projet

Général

Profil

0002-python3-oidc-authn-test-jwk-encoding.patch

Paul Marillonnet, 25 avril 2019 16:17

Télécharger (1,03 ko)

Voir les différences:

Subject: [PATCH 2/2] python3: oidc authn test jwk encoding

 tests/test_auth_oidc.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tests/test_auth_oidc.py
194 194
            else:
195 195
                jwt = JWT(header={'alg': 'HS256'},
196 196
                          claims=id_token)
197
                k = base64url_encode(oidc_provider.client_secret.encode('utf-8'))
197 198
                jwt.make_signed_token(
198 199
                    JWK(kty='oct',
199
                        k=base64url_encode(oidc_provider.client_secret.encode('utf-8'))))
200
                        k=k.decode('ascii')))
200 201

  
201 202
            content = {
202 203
                'access_token': '1234',
203
-