Add option to disable automatic redirect to SAML login in environment-variable mode

オープン
#1,029 コメント 2 件 リアクション 4 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
php

調査の方向性

Application.php から始めます。ここでは現在、issue によって $showLoginOptions = true が強制されています。環境変数によるログインフローを /index.php/login から SAML ルートまで追跡してください。自動リダイレクトを無効にすると、代わりに /apps/user_saml/saml/selectUserBackEnd が表示されるように設定の動作を定義し、有効および無効の両方のケースを検証してください。

索引モデルが issue の本文から書いたものです。

説明

0. Needs triage enhancement
How to use GitHub
  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Feature request

Which Nextcloud Version are you currently using: 32.0.3

Is your feature request related to a problem? Please describe.
In environment-variable mode, requesting /index.php/login (so going to nextcloud root when not logged in) triggers an unconditional redirect to /apps/user_saml/saml/login (and then WAYF/IdP). This confuses users and prevents them from reading service information/terms before initiating federated login.

Describe the solution you'd like
Provide a setting to disable automatic redirect from /index.php/login to /apps/user_saml/saml/login and display /apps/user_saml/saml/selectUserBackEnd instead.

Additional context
For the moment I bypassed the problem by forcing $showLoginOptions = true; in Application.php

主要言語
PHP
スター
106
フォーク
84
平均マージ
1日 11時間
マージ済み PR(30日)
14

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/user_saml のほかの issue

nextcloud/user_saml の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。