1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Store prompted passwords in local sessions (#1239)

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
This commit is contained in:
Sebastian Czech
2021-12-29 10:00:47 +01:00
committed by GitHub
parent 05c02f0f39
commit 17ed3bb8c5
2 changed files with 25 additions and 10 deletions

View File

@@ -296,6 +296,10 @@ class HTTPieArgumentParser(BaseHTTPieArgumentParser):
' --ignore-stdin is set.'
)
credentials.prompt_password(url.netloc)
if (credentials.key and credentials.value):
plugin.raw_auth = credentials.key + ":" + credentials.value
self.args.auth = plugin.get_auth(
username=credentials.key,
password=credentials.value,