ruflo/docs/AUTH.md
HF Chat UI has native OpenID Connect support. Google OAuth is the easiest to set up.
https://YOUR_DOMAIN/login/callbackecho -n "GOCSPX-your-client-secret" | gcloud secrets create google-client-secret \
--data-file=- --project=YOUR_PROJECT
In config/config.json:
{
"auth": {
"enabled": true,
"provider": "google",
"clientId": "123456789-abc.apps.googleusercontent.com",
"clientSecretName": "google-client-secret",
"scopes": "openid profile email",
"nameClaim": "name"
}
}
The deploy script automatically adds OPENID_* env vars and binds the secret.
Set auth.enabled: false in config.json. The chat will be publicly accessible.
Any OpenID Connect provider works. Change the provider URL in the generated dotenv-local.txt:
OPENID_PROVIDER_URL=https://your-idp.com
OPENID_CLIENT_ID=your-client-id
Supported providers: Google, Microsoft Entra ID, Auth0, Okta, Keycloak, etc.