MCPcopy
hub / github.com/httpie/cli / AuthCredentials

Class AuthCredentials

httpie/cli/argtypes.py:158–165  ·  view source on GitHub ↗

Represents parsed credentials.

Source from the content-addressed store, hash-verified

156
157
158class AuthCredentials(KeyValueArg, PromptMixin):
159 """Represents parsed credentials."""
160
161 def has_password(self) -> bool:
162 return self.value is not None
163
164 def prompt_password(self, host: str) -> None:
165 self.value = self._prompt_password(f'password for {self.key}@{host}:')
166
167
168class AuthCredentialsArgType(KeyValueArgType):

Callers 1

_process_authMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected