{{ t("security_setting.OAuth.GitHub.name") }} {{ t("security_setting.configuration") }} {% set nameForIsGitHubEnabled = "settingForm[security:passport-github:isEnabled]" %} {% set isGitHubEnabled = settingForm['security:passport-github:isEnabled'] %} {% set siteUrl = settingForm['app:siteUrl'] || '[INVALID]' %} {% set callbackUrl = siteUrl + '/passport/github/callback' %}

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

{{ t("security_setting.Use env var if empty", "OAUTH_GITHUB_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.github") }}

  1. {{ t("security_setting.OAuth.GitHub.register_1", "https://github.com/settings/developers", "GitHub Developer Settings") }}
  2. {{ t("security_setting.OAuth.GitHub.register_2", callbackUrl) }}
  3. {{ t("security_setting.OAuth.GitHub.register_3") }}