Unable to perform password authentication

I’ve been following the docs here:

I’m trying to get a token which grants me push access to my repository:

I’m using these values for the form:

Service = "registry.docker.io";
Realm = "https://auth.docker.io/token";
Scope = "repository:boondocks/device-api:push";

I don’t seem to be able to POST to the specified realm. This is strange because the docs specifically describe this:

POST /token HTTP/1.1
Host: auth.docker.io
Content-Type: application/x-www-form-urlencoded


What am I missing?

Figured it out:


The username / password is sent in a basic authentication header (base64 encoded). Still not sure why the documentation states you can POST to that endpoint.