nextcloud / nextcloud/mail

[Feature Request] Password as SAML Attribute

Open
#8,802 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: provisioning
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Is your feature request related to a problem? Please describe.

We use Nextcloud with Keycloak SAML login enabled. Mailboxes uses a specific password that is stored in cleartext as an attribute named mail-password in Keycloak.

There's at the moment no way to auto-provision mail account when using SAML (or OIDC) and not a password-based login on Nextcloud.

Describe the solution you'd like

image
It would be useful to be able to specify an attribute that is passed to Nextcloud when login through SAML and is used to specify password for auto-provisioning mail accounts.

Also, as attributes are passed at every login, it would be great to update the password at every login in case it is changed (in our case users aren't able to specify their own password but can request a new random one).

Describe alternatives you've considered

No response

Additional context

OIDC can also pass arbitrary attributes just like SAML can, so I would be great to support the same feature with OIDC.

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 by locating the existing SAML and OIDC attribute handling and the mail account auto-provisioning entry point; no specific files or tests are named. Define configuration for selecting a password attribute, verify provisioning from that attribute, and confirm that later logins update the password for both authentication methods.

Written by the indexing model from the issue text.

Assessment

Domain
authentication, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.