{% extends '../layout/admin.html' %} {% block html_title %}セキュリティ · {% endblock %} {% block content_head %}
{% 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 %}
基本設定

Basic認証を設定すると、ページ全体に共通の認証がかかります。
IDとパスワードは暗号化されずに送信されるのでご注意下さい。

ここに入力した内容は、ヘッダー等に表示されます。

登録可能なメールアドレスを制限することができます。例えば、会社で使う場合、@crowi.wiki などと記載すると、その会社のメールアドレスを持っている人のみ登録可能になります。
1行に1メールアドレス入力してください。

認証機構選択

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

Official Crowi authentication mechanism

  • Username, E-mail and Password authentication
  • Google OAuth2 authentication

Passport authentication mechanism (Recommended)

  • Username, E-mail and Password authentication
  • LDAP authentication
  • (TBD) Google OAuth2 authentication
  • (TBD) Facebook OAuth2 authentication
  • (TBD) Twitter OAuth authentication
  • (TBD) Github OAuth2 authentication
認証機構設定 {% 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 %}