{% extends '../layout/admin.html' %} {% block html_title %}{{ t('Security settings') }} · {% endblock %} {% block content_header %}
{% endblock %} {% block content_main %}
{% include './widget/menu.html' with {current: 'security'} %}
{% set smessage = req.flash('successMessage') %} {% if smessage.length %}
{% for e in smessage %} {{ e }}
{% endfor %}
{% endif %} {% set emessage = req.flash('errorMessage') %} {% if emessage.length %}
{% for e in emessage %} {{ e }}
{% endfor %}
{% endif %}
{{ t('security_setting.Security settings') }}

{{ t("security_setting.common_authentication") }}
{{ t("security_setting.without_encryption") }}

{{ t('The contents entered here will be shown in the header etc') }}

{{ t("security_setting.restrict_emails") }}{{ t("security_setting.for_instance") }}@crowi.wiki{{ t("security_setting.only_those") }}
{{ t("security_setting.insert_single") }}

{{ t('Selecting authentication mechanism') }}

NOTE: Restarting the server is needed if you switch the auth mechanism.

  • Username, E-mail and Password authentication
  • LDAP authentication
  • (TBD) Google OAuth2 authentication
  • (TBD) Facebook OAuth2 authentication
  • (TBD) Twitter OAuth authentication
  • (TBD) Github OAuth2 authentication

  • Username, E-mail and Password authentication
  • Google OAuth2 authentication
{{ t('security_setting.Authentication mechanism settings') }} {% set isOfficialConfigurationVisible = !isEnabledPassport() %}
{% set isRestartingServerNeeded = isPassportLocalStrategySetup() %}

Restarting the server is needed. The server is running with Passport authentication mechanism.

Google 設定

Google Cloud Platform の API Manager から OAuth2 Client ID を作成すると、Google アカウントにコネクトして登録やログインが可能になります。

  1. API Manager へアクセス
  2. プロジェクトを作成していない場合は作成してください
  3. 「認証情報を作成」-> OAuthクライアントID
    1. 「ウェブアプリケーション」を選択
    2. 承認済みのリダイレクトURLに、 https://${crowi.host}/google/callback を入力
      (${crowi.host}は環境に合わせて変更してください)
{# # passport settings nav #} {% set isPassportConfigurationVisible = settingForm['security:isEnabledPassport'] %}
{% set isRestartingServerNeeded = !isPassportLocalStrategySetup() %}

Restarting the server is needed. The server is running with Official Crowi authentication mechanism.

{% include './widget/passport/ldap.html' with { settingForm: settingForm } %}
{% include './widget/passport/google-oauth.html' %}
{% include './widget/passport/facebook.html' %}
{% include './widget/passport/twitter.html' %}
{% include './widget/passport/github.html' %}
{% endblock content_main %} {% block content_footer %} {% endblock content_footer %}