MCPcopy Index your code
hub / github.com/httpie/cli / get_auth

Method get_auth

httpie/plugins/base.py:58–69  ·  view source on GitHub ↗

If `auth_parse` is set to `True`, then `username` and `password` contain the parsed credentials. Use `self.raw_auth` to access the raw value passed through `--auth, -a`. Return a ``requests.auth.AuthBase`` subclass instance.

(self, username: str = None, password: str = None)

Source from the content-addressed store, hash-verified

56 raw_auth = None
57
58 def get_auth(self, username: str = None, password: str = None):
59 """
60 If `auth_parse` is set to `True`, then `username`
61 and `password` contain the parsed credentials.
62
63 Use `self.raw_auth` to access the raw value passed through
64 `--auth, -a`.
65
66 Return a ``requests.auth.AuthBase`` subclass instance.
67
68 """
69 raise NotImplementedError()
70
71
72class TransportPlugin(BasePlugin):

Callers 2

authMethod · 0.45
_process_authMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected