(self, auth, token_endpoint)
| 45 | self.alg = alg |
| 46 | |
| 47 | def sign(self, auth, token_endpoint): |
| 48 | if isinstance(auth.client_secret, OctKey): |
| 49 | key = auth.client_secret |
| 50 | else: |
| 51 | key = OctKey.import_key(auth.client_secret) |
| 52 | return client_secret_jwt_sign( |
| 53 | key, |
| 54 | client_id=auth.client_id, |
| 55 | token_endpoint=token_endpoint, |
| 56 | claims=self.claims, |
| 57 | header=self.headers, |
| 58 | alg=self.alg, |
| 59 | ) |
| 60 | |
| 61 | def __call__(self, auth, method, uri, headers, body): |
| 62 | token_endpoint = self.token_endpoint |
no test coverage detected