[Feature Request] Password as SAML Attribute
Nobody has claimed this yet.
- 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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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