(
self,
session,
client_id,
client_secret=None,
token=None,
token_secret=None,
redirect_uri=None,
rsa_key=None,
verifier=None,
signature_method=SIGNATURE_HMAC_SHA1,
signature_type=SIGNATURE_TYPE_HEADER,
force_include_body=False,
realm=None,
**kwargs,
)
| 12 | auth_class = ClientAuth |
| 13 | |
| 14 | def __init__( |
| 15 | self, |
| 16 | session, |
| 17 | client_id, |
| 18 | client_secret=None, |
| 19 | token=None, |
| 20 | token_secret=None, |
| 21 | redirect_uri=None, |
| 22 | rsa_key=None, |
| 23 | verifier=None, |
| 24 | signature_method=SIGNATURE_HMAC_SHA1, |
| 25 | signature_type=SIGNATURE_TYPE_HEADER, |
| 26 | force_include_body=False, |
| 27 | realm=None, |
| 28 | **kwargs, |
| 29 | ): |
| 30 | if not client_id: |
| 31 | raise ValueError('Missing "client_id"') |
| 32 | |
| 33 | self.session = session |
| 34 | self.auth = self.auth_class( |
| 35 | client_id, |
| 36 | client_secret=client_secret, |
| 37 | token=token, |
| 38 | token_secret=token_secret, |
| 39 | redirect_uri=redirect_uri, |
| 40 | signature_method=signature_method, |
| 41 | signature_type=signature_type, |
| 42 | rsa_key=rsa_key, |
| 43 | verifier=verifier, |
| 44 | realm=realm, |
| 45 | force_include_body=force_include_body, |
| 46 | ) |
| 47 | self._kwargs = kwargs |
| 48 | |
| 49 | @property |
| 50 | def redirect_uri(self): |
nothing calls this directly
no outgoing calls
no test coverage detected