Projet

Général

Profil

0001-oidc-authn-test-id-token-required-claims-31863.patch

Paul Marillonnet, 29 mars 2019 19:20

Télécharger (942 octets)

Voir les différences:

Subject: [PATCH] oidc authn: test id token required claims (#31863)

 src/authentic2_auth_oidc/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/authentic2_auth_oidc/utils.py
127 127
            raise ValueError('invalid id_token')
128 128
        keys = set(decoded.keys())
129 129
        # check fields are ok
130
        if keys < REQUIRED_ID_TOKEN_KEYS:
130
        if keys & REQUIRED_ID_TOKEN_KEYS != REQUIRED_ID_TOKEN_KEYS:
131 131
            raise ValueError('missing field: %s' % (REQUIRED_ID_TOKEN_KEYS - keys))
132 132
        for key in keys:
133 133
            if key == 'aud':
134
-