sou 7 lat temu
rodzic
commit
a05df4074d

+ 1 - 0
lib/locales/en-US/translation.json

@@ -327,6 +327,7 @@
     "change_redirect_url": "Enter <code>https://${crowi.host}/google/callback</code> <br>(where <code>${crowi.host}</code> is your host name) for \"Authorized redirect URIs\".",
     "change_redirect_url": "Enter <code>https://${crowi.host}/google/callback</code> <br>(where <code>${crowi.host}</code> is your host name) for \"Authorized redirect URIs\".",
     "clientID": "Client ID",
     "clientID": "Client ID",
     "client_secret": "Client Secret",
     "client_secret": "Client Secret",
+    "callback_URL": "Callback URL",
     "guest_mode": {
     "guest_mode": {
       "deny": "Deny Unregistered Users",
       "deny": "Deny Unregistered Users",
       "readonly": "View Only"
       "readonly": "View Only"

+ 1 - 0
lib/locales/ja/translation.json

@@ -344,6 +344,7 @@
     "change_redirect_url": "承認済みのリダイレクトURLに、 <code>https://${crowi.host}/google/callback</code> を入力<br>(<code>${crowi.host}</code>は環境に合わせて変更してください)",
     "change_redirect_url": "承認済みのリダイレクトURLに、 <code>https://${crowi.host}/google/callback</code> を入力<br>(<code>${crowi.host}</code>は環境に合わせて変更してください)",
     "clientID": "クライアントID",
     "clientID": "クライアントID",
     "client_secret": "クライアントシークレット",
     "client_secret": "クライアントシークレット",
+    "callback_URL": "コールバックURL",
     "guest_mode": {
     "guest_mode": {
       "deny": "アカウントを持たないユーザーはアクセス不可",
       "deny": "アカウントを持たないユーザーはアクセス不可",
       "readonly": "閲覧のみ許可"
       "readonly": "閲覧のみ許可"

+ 13 - 0
lib/views/admin/widget/passport/github.html

@@ -45,6 +45,19 @@
         </p>
         </p>
       </div>
       </div>
     </div>
     </div>
+
+    <div class="form-group">
+      <label for="settingForm[security:passport-github:callbackURL]" class="col-xs-3 control-label">{{ t("security_setting.callback_URL") }}</label>
+      <div class="col-xs-6">
+        <input class="form-control" type="text" name="settingForm[security:passport-github:callbackURL]" value="{{ settingForm['security:passport-github:callbackURL'] || '' }}">
+        <p class="help-block">
+          <small>
+            {{ t("security_setting.Use env var if empty", "OAUTH_GITHUB_CALLBACK_URL") }}
+          </small>
+        </p>
+      </div>
+    </div>
+
     <div class="form-group">
     <div class="form-group">
       <div class="col-xs-6 col-xs-offset-3">
       <div class="col-xs-6 col-xs-offset-3">
         <div class="checkbox checkbox-info">
         <div class="checkbox checkbox-info">