1
0
mirror of https://github.com/httpie/cli.git synced 2026-06-20 11:32:56 +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
+10 -4
View File
@@ -1003,10 +1003,10 @@ the [sessions](#sessions) feature.
https -A bearer -a token pie.dev/bearer
```
### Empty password
```bash
$ http -a username: pie.dev/headers
### Password prompt
```bash
$ http -a username pie.dev/basic-auth/username/password
```
### Empty password
@@ -1020,6 +1020,12 @@ $ http -a username:password pie.dev/basic-auth/username/password
Authentication information from your `~/.netrc` file is by default honored as well.
For example:
```bash
$ cat ~/.netrc
machine pie.dev
login httpie
password test
```
```bash