nextcloud / nextcloud/user_saml

Allow multiple user backends when using SSO type "environment-variable"

Open
#970 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement
Dominant language
PHP
Stars
104
Forks
85
Avg merge
1d 15h
Merged PRs (30d)
16

Description

Hi,

Our client would like to have the option to enable local (direct) login when using user_saml plugin in "environment-variable" type.

As this piece of code states, the option only exists when using "saml" type:

(https://github.com/nextcloud/user_saml/blob/703993131ee1abc810cb751f54ee868ce1eafaae/lib/SAMLSettings.php#L106-L110)

What we expect

  1. When using "environment-variable" type login, the settings page would give the possibility to select "Allow the use of multiple user back-ends (e.g. LDAP)" like it is already the case for "saml" type.
  2. With this option enabled in the settings, instead of instantly redirecting the user to SSO the login page would present 2 options:
  • Direct login
  • Login with SSO

Kind regards,
Thierry

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in lib/SAMLSettings.php around lines 106-110 and compare how the multiple-user-backend option is handled for "saml" versus "environment-variable". Trace the environment-variable login flow to identify where its immediate redirect is selected. Done means the setting is available for that type and enabled users can choose Direct login or Login with SSO.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.