1
Encode the password
The password is sent base64-encoded in the
password field. Generate it once:2
Log in with dual login
Log in as The first login responds with
Admin1, then Admin2, writing to a shared cookie jar (-c writes, -b reads):Dual login
fullyLoggedIn: false; after the second login the session is complete:Second login response (truncated)
3
Mint a bearer token
Now exchange the fully logged-in session for a bearer token:For the remaining steps, send the token as a bearer header. Keep the cookie jar too, as some hosts accept either:
Mint the bearer token
GET /home/v1/login/token response (truncated)
A subsequent read-only call such as
GET /api/v2/x509/cert-profiles/stubs should return HTTP 200 with "success": true. If you receive HTTP 401 or "errorCode": "InvalidAuthToken", the token has expired; repeat this step to mint a fresh one.
