> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cake.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Sign in and get initial credentials

> Sign in to Cake Platform applications with single sign-on and retrieve the admin credentials Cake generates for LiteLLM, Langflow, and Trino.

Most Cake Platform applications use single sign-on, so your users sign in with your organization's identity provider. A few applications also have a built-in admin account. Cake generates the password for each of those accounts inside the cluster and stores it in a Kubernetes secret.

## Sign in with single sign-on

The platform uses [Dex](https://dexidp.io/) as its identity broker at `https://<base-hostname>/dex`. Cake connects Dex to your identity provider during installation. Dex supports:

* Google Workspace, optionally restricted to specific domains and groups
* Microsoft Entra ID
* Any OpenID Connect (OIDC) provider
* Local accounts with static passwords

To sign in, open an application URL from the [components list](https://docs.cake.ai/platform/components/overview.md) and choose your identity provider on the Dex login page.

To change which identity provider or domains can sign in, update `app_config.dex` in your [vars file](https://docs.cake.ai/platform/configure-the-platform.md#configure-sign-in).

### Platform admins

Cake assigns the `cake-admin` role to the users you name as platform admins. Users with the `cake-admin` role get:

* The `admin` role in Argo CD
* The `Admin` role in Grafana. Other users sign in to Grafana as `Viewer`.
* The `cake-admin` Kubernetes ClusterRole for their identity in the cluster

Argo CD and Grafana have no local admin login. You reach them only through single sign-on.

## Retrieve generated credentials

The following applications have an admin account that Cake creates with a generated password. You read each password from a Kubernetes secret, so you need cluster access first. See [Access the Kubernetes cluster](https://docs.cake.ai/platform/cluster-access.md).

| Application | Username | Secret | Namespace | Key |
| - | - | - | - | - |
| LiteLLM | `admin` | `litellm` | `litellm` | `masterKey` |
| Langflow | `langflow` | `langflow-superuser-credentials` | `langflow-ide` | `password` |
| Trino | `admin` | `trino-password-file` | `trino` | `password` |

The namespaces above are the defaults. A project instance of an application runs in its own namespace. To find the right namespace, list the secrets across all namespaces:

```bash theme={null}
kubectl get secrets -A | grep -E 'litellm|langflow-superuser-credentials|trino-password-file'
```

### LiteLLM master key

The LiteLLM master key starts with `sk-`. Use it to call the LiteLLM admin API, create virtual keys for your users, and sign in to the LiteLLM admin UI.

```bash theme={null}
kubectl get secret litellm -n litellm \
  -o jsonpath='{.data.masterKey}' | base64 -d
```

### Langflow superuser

Langflow signs users in automatically. Use the superuser account for administrative tasks in Langflow.

```bash theme={null}
kubectl get secret langflow-superuser-credentials -n langflow-ide \
  -o jsonpath='{.data.password}' | base64 -d
```

### Trino password

Use the Trino username and password to connect JDBC clients and other SQL tools to `trino.<base-hostname>`.

```bash theme={null}
kubectl get secret trino-password-file -n trino \
  -o jsonpath='{.data.password}' | base64 -d
```

> [!WARNING]
>
> These credentials grant admin access. Store them in your organization's secrets manager and share them only with the people who need them.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.