Login

Logging in to your DC/OS cluster

User login

With DC/OS, login is the process of exchanging user credentials for a DC/OS Authentication token.

Obtaining a DC/OS Authentication is required by any user before being able to use a DC/OS cluster. In DC/OS the life-time of an Authentication token is limited to five days. Once the Authentication token expires the user must log in again.

DC/OS handles multiple user types. User accounts can be managed via the IAM API; see User Management.

Different login methods exist for different user types but each one yields a DC/OS authentication token:

  • External user login: External user accounts can only log in via single sign-on through Auth0 (using their Google, GitHub, or Microsoft credentials).
  • Local user login: A local user logs in by entering a password which is compared to the password hash stored inside DC/OS.
  • Service login: A service logs in by entering a short-lived “service login token” of which the signature is verified using the service account public key stored inside DC/OS.

User logout

Users cannot be actively logged out of DC/OS. As long as an issued DC/OS Authentication tokens exists and is valid, the user that it was issued for can operate the DC/OS cluster. A user can however decide to delete any valid DC/OS Authentication token in their possession. The DC/OS CLI auth logout command does exactly that.

NOTE: There is no way to revoke access to a DC/OS cluster other than to wait until the authentication token expires.