Skip to content

All Django Settings options

Setting Description
GOOGLE_SSO_ALLOWABLE_DOMAINS List of domains that will be allowed to create users. Default: []
GOOGLE_SSO_ALWAYS_UPDATE_USER_DATA If true, update default user info from Google data at every login. This will also make their password unusable. Otherwise, all of this happens only on create. Default: False
GOOGLE_SSO_AUTHENTICATION_BACKEND The authentication backend to use. Default: None
GOOGLE_SSO_AUTO_CREATE_FIRST_SUPERUSER If True, the first user that logs in will be created as superuser if no superuser exists in the database at all. Default: False
GOOGLE_SSO_AUTO_CREATE_USERS Enable or disable the auto-create users feature. Default: True
GOOGLE_SSO_CALLBACK_DOMAIN The netloc to be used on Callback URI. Default: None
GOOGLE_SSO_CLIENT_ID The Google OAuth 2.0 Web Application Client ID. Default: None
GOOGLE_SSO_CLIENT_SECRET The Google OAuth 2.0 Web Application Client Secret. Default: None
GOOGLE_SSO_DEFAULT_LOCALE Default code for Google locale. Default: en
GOOGLE_SSO_ENABLE_LOGS Show Logs from the library. Default: True
GOOGLE_SSO_ENABLE_MESSAGES Show Messages using Django Messages Framework. Default: True
GOOGLE_SSO_ENABLED Enable or disable the plugin. Default: True
GOOGLE_SSO_LOGIN_FAILED_URL The named url path that the user will be redirected to if an authentication error is encountered. Default: admin:index
GOOGLE_SSO_LOGO_URL The URL of the logo to be used on the login button. Default: https://upload.wikimedia.org/wikipedia/commons/thumb/5/53/Google_%22G%22_Logo.svg/512px-Google_%22G%22_Logo.svg.png
GOOGLE_SSO_NEXT_URL The named url path that the user will be redirected if there is no next url after successful authentication. Default: admin:index
GOOGLE_SSO_PRE_CREATE_CALLBACK Callable for processing pre-create logic. Default: django_google_sso.hooks.pre_create_user
GOOGLE_SSO_PRE_LOGIN_CALLBACK Callable for processing pre-login logic. Default: django_google_sso.hooks.pre_login_user
GOOGLE_SSO_PROJECT_ID The Google OAuth 2.0 Project ID. Default: None
GOOGLE_SSO_SAVE_ACCESS_TOKEN Save the access token in the session. Default: False
GOOGLE_SSO_SCOPES The Google OAuth 2.0 Scopes. Default: ["openid", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile"]
GOOGLE_SSO_SESSION_COOKIE_AGE The age of the session cookie in seconds. Default: 3600
GOOGLE_SSO_STAFF_LIST List of emails that will be created as staff. Default: []
GOOGLE_SSO_SUPERUSER_LIST List of emails that will be created as superuser. Default: []
GOOGLE_SSO_TEXT The text to be used on the login button. Default: Sign in with Google
GOOGLE_SSO_TIMEOUT The timeout in seconds for the Google SSO authentication returns info, in minutes. Default: 10
SSO_SHOW_FORM_ON_ADMIN_PAGE Show the form on the admin page. Default: True
SSO_USE_ALTERNATE_W003 Use alternate W003 warning. You need to silence original templates.E003 warning. Default: False