Skip to main content

Authentication

caution

The Ash Console is currently in alpha and not production-ready. It is under active development and subject to breaking changes.

Before interacting with the Ash Console, you need to authenticate yourself. The authentication flow depends on the tool you are using (Ash Console Web UI, Ash CLI, Ash Console API).

info

During the Console alpha, user accounts are created by the Ash team. If you want to get access to the Console alpha, please contact us!

To authenticate, run:

Command
ash console auth login

The CLI will prompt you an URL and a code to enter in the browser:

Prompt
Logging in to the Ash Console at https://api.console.ash.center
Please open the following URL in your browser:
https://auth.console.ash.center/realms/jeeo/device
and enter the code: CGAX-GSVT

Once you have provided the code and authenticated yourself, the CLI will display the following message:

Login successful! The credentials have been stored in your device keyring.
note

The Console session lasts at most 24 hours (and 10 hours in case of inactivity). After that, you will need to login again. When trying to use the Console after the session has expired, you will get the following error:

Console OAuth2 error: failed to request OAuth2 token: Server returned error response
tip

If you plan to use the API directly, run:

Command
ash console auth refresh-token
export access_token=$(ash console auth show-token | grep -)