{{ t("security_setting.OAuth.Google.name") }} {{ t("security_setting.configuration") }} {% set nameForIsGoogleEnabled = "settingForm[security:passport-google:isEnabled]" %} {% set isGoogleEnabled = settingForm['security:passport-google:isEnabled'] %} {% set callbackUrl = settingForm['app:siteUrl'] || '[INVALID]' + '/passport/google/callback' %}

{{ t("security_setting.Use env var if empty", "OAUTH_GOOGLE_CLIENT_ID") }}

{{ t("security_setting.Use env var if empty", "OAUTH_GOOGLE_CLIENT_SECRET") }}

{{ t("security_setting.desc_of_callback_URL", 'OAuth') }}

{% if !settingForm['app:siteUrl'] %}
{{ t("security_setting.alert_siteUrl_is_not_set", '' + t('App settings') + '') }}
{% endif %}

{{ t("security_setting.Treat username matching as identical_warn", "username") }}

{# Help Section #}

{{ t("security_setting.OAuth.how_to.google") }}

  1. {{ t("security_setting.OAuth.Google.register_1", "https://console.cloud.google.com/apis/credentials", "Google Cloud Platform API Manager") }}
  2. {{ t("security_setting.OAuth.Google.register_2") }}
  3. {{ t("security_setting.OAuth.Google.register_3") }}
  4. {{ t("security_setting.OAuth.Google.register_4", callbackUrl) }}
  5. {{ t("security_setting.OAuth.Google.register_5") }}