CLI Authentication
ConsoleMe's CLI (Weep) authenticates to the ConsoleMe backend through one of two methods: Mutual TLS (This is currently not supported in the open source code), or standalone challenge authentication response.
The challenge authentication flow is as follows:
Client sends a GET request to ConsoleMe's unauthenticated challenge endpoint. The server generates and stores a temporary token for the authentication request. A token is scoped to the username sent in the request and expires after a couple of minutes. ConsoleMe tells the client where the user should authenticate it in their browser (
challenge_url
), and where to poll (polling_url
).Client starts polling the unauthenticated polling_url every couple of seconds until the token expires after a couple of minutes.
The user is redirected to the Challenge Validator endpoint, which will authenticate them. After they've been successfully authenticated, the ConsoleMe backend will mark the user's request as successful in its cache.
After the user has authenticated, the client (which is polling the
challenge_poller
endpoint every couple of seconds) should receive a success status with the super secret encoded JWT that it can use to authenticate the user for credential requests to ConsoleMe.
Challenge Generator
GET
https://consoleme.example.com/noauth/v1/challenge:generator/:userName
Client requests a challenge URL to authenticate a user.
Path Parameters
Name | Type | Description |
---|---|---|
string |
Challenge Poller
GET
https://consoleme.example.com/noauth/v1/challenge:poller/:challengeToken
Endpoint that the CLI polls every few seconds to determine if the user has successfully authenticated. While the challenge is pending, status
is the only attribute returned in the response. Once the user has successfully authenticated to the Challenge Validator endpoint, status
will be updated, and the rest of the attributes will be returned in the next response.
Path Parameters
Name | Type | Description |
---|---|---|
string |
Challenge Validator
GET
https://consoleme.example.com/challenge:validator/:challengeToken
Endpoint that user visits in their browser to authenticate to ConsoleMe through SSO.
Path Parameters
Name | Type | Description |
---|---|---|
string |
Last updated