Extend client authenticate for token endpoint. :param auth: an instance to sign the request
(self, auth)
| 137 | self.leeway = leeway |
| 138 | |
| 139 | def register_client_auth_method(self, auth): |
| 140 | """Extend client authenticate for token endpoint. |
| 141 | |
| 142 | :param auth: an instance to sign the request |
| 143 | """ |
| 144 | if isinstance(auth, tuple): |
| 145 | self._auth_methods[auth[0]] = auth[1] |
| 146 | else: |
| 147 | self._auth_methods[auth.name] = auth |
| 148 | |
| 149 | def client_auth(self, auth_method): |
| 150 | if isinstance(auth_method, str) and auth_method in self._auth_methods: |
no outgoing calls