1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-16 13:04:00 +02:00

With trailing newline base64 generate wrong hash

Dmitriy Novash
2020-12-15 17:30:05 +02:00
parent 481ad99008
commit a494dc7e0b

@@ -8,7 +8,7 @@ At the moment there is no complete API specification available, so you have to r
## autorization
If you want to use the API with curl and want to use authentication, you can do this by passing the `X-IFM-AUTH` header. This header is constructed like the widely known basic authorization header. Just join username and password with a colon and do a base64 encode:
```bash
$ echo -e "username:password" | base64
$ echo -en "username:password" | base64
dXNlcm5hbWU6cGFzc3dvcmQ=
$ curl -H "X-IFM-Auth: dXNlcm5hbWU6cGFzc3dvcmQ=" ...
```