0001-auth_oidc-make-OIDCProvider.jwkset-always-be-a-jwcry.patch
src/authentic2_auth_oidc/models.py | ||
---|---|---|
160 | 160 |
if self.jwkset_json: |
161 | 161 |
return JWKSet.from_json(json.dumps(self.jwkset_json)) |
162 | 162 |
if self.idtoken_algo == self.ALGO_HMAC: |
163 |
return JWK(kty='oct', k=base64url_encode(self.client_secret.encode('utf-8'))) |
|
163 |
jwks = JWKSet() |
|
164 |
jwks.add(JWK(kty='oct', k=base64url_encode(self.client_secret.encode('utf-8')))) |
|
165 |
return jwks |
|
164 | 166 |
return None |
165 | 167 | |
166 | 168 |
def __str__(self): |
167 |
- |