Skip to content

Google Authentication (On-Premise Only)

Authentication against Google OAuth2 (known as Login with Google)

Configuration with Environment Variables

Environment variable: BOTIUMBOX_PASSPORT_OAUTH2_GOOGLE_ENABLE

Set to 1 to enable or 0 to disable (default 0)

Environment variable: BOTIUMBOX_PASSPORT_OAUTH2_GOOGLE_CLIENT_ID

Set the client ID of your app credentials

Note

You need to create an app in Google Developer Console to get the client ID

Environment variable: BOTIUMBOX_PASSPORT_OAUTH2_GOOGLE_CLIENT_SECRET

set to the client secret of your app credentials

Note

You need to create an app in Google Developer Console to get the client secret

Environment variable: BOTIUMBOX_PASSPORT_OAUTH2_GOOGLE_AUTOCREATE_USER

1 (auto create users not found in Botium Box) or 0 (default 0)

Environment variable: BOTIUMBOX_PASSPORT_OAUTH2_GOOGLE_AUTOCREATE_ROLE

Assign role to auto created user (default GUEST) if nothing has been mapped

Environment variable: BOTIUMBOX_PASSPORT_OAUTH2_GOOGLE_AUTOCREATE_CLIENT

Assign client to auto created user (for multi tenency environments, see below)

Environment variable: BOTIUMBOX_PASSPORT_OAUTH2_GOOGLE_AUTOCREATE_DOMAIN

Only emails with the set domain are allowed to be auto created