Authentication
Hive's login is available regardless of visibility so administrators can sign in to a public instance. Authentication is delegated to Ueberauth + ueberauth_oidcc; any number of providers can be enabled simultaneously and will appear as buttons on the login screen.
Google
Set these environment variables:
HIVE_GOOGLE_CLIENT_IDHIVE_GOOGLE_CLIENT_SECRETHIVE_GOOGLE_ALLOWED_DOMAINS(optional, comma-separated list of email domains to accept; for exampletuist.dev).
When a single domain is set, the authorize redirect also includes Google's hd= hint to pre-filter the account picker. The allowlist is enforced on the callback regardless.
Callback URL: /auth/google/callback on the deployed host.
Setting up Google OAuth
- Open https://console.cloud.google.com/apis/credentials in the Google Cloud project you want to use.
- Configure the OAuth consent screen (User type Internal for a workspace, External otherwise; scopes
openid,profile,email). - Create Credentials → OAuth client ID → Web application.
- Add the Authorized redirect URI for each environment, e.g.
https://hive.example.com/auth/google/callback. - Copy the Client ID and Client Secret into
HIVE_GOOGLE_CLIENT_IDandHIVE_GOOGLE_CLIENT_SECRET.
Generic OpenID Connect
Any OIDC provider with a .well-known/openid-configuration endpoint:
HIVE_OIDC_ISSUER: the issuer base URL. Hive's auth client discovers authorize/token/userinfo endpoints from<issuer>/.well-known/openid-configuration.HIVE_OIDC_CLIENT_IDHIVE_OIDC_CLIENT_SECRET(optional)HIVE_OIDC_DISPLAY_NAME(optional, label on the login button; defaults to "Identity provider")HIVE_OIDC_ALLOWED_DOMAINS(optional, comma-separated allowlist)
Callback URL: /auth/oidc/callback on the deployed host.
