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

Implement Bearer Auth (#1216)

This commit is contained in:
Batuhan Taskaya
2021-12-01 20:37:57 +03:00
committed by GitHub
parent 5bf696d113
commit 00b366a81f
6 changed files with 51 additions and 8 deletions

View File

@@ -554,10 +554,11 @@ auth = parser.add_argument_group(title='Authentication')
auth.add_argument(
'--auth', '-a',
default=None,
metavar='USER[:PASS]',
metavar='USER[:PASS] | TOKEN',
help='''
If only the username is provided (-a username), HTTPie will prompt
for the password.
For username/password based authentication mechanisms (e.g
basic auth or digest auth) if only the username is provided
(-a username), HTTPie will prompt for the password.
''',
)