What's the '--authenticate-api' username? [RFC 2617]
-
EX:./siad --disable-api-security --api-addr 10.11.22.54:9980 --authenticate-api
password is 123456.I want to use api request wallet/siacoin,unlock..... but i don't know username.
Who can help me?
-
There is no username, just a password.
I do not think that we are RFC2617 compliant, I will look into it though.
-
*For everyone:
RFC2617 has now been updated by RFC7235: https://tools.ietf.org/html/rfc7235
-
The username is the empty string. We conform to HTTP Basic Auth as described in RFC 2617, so if the password is "foobar" the correct header to send in the API would be the base 64 encoded version of ":foobar" like so.
Authorization: Basic OmZvb2Jhcg==
-
@jordan it doesn't work. my password is 123456. I use 'Authenticate: Basic OjEyMzQ1Ng==' but the result is still 401
-
@myjavaee
Authenticateshould beAuthorization.