Skip to content

Allow setting enrich_login_id_token_with_userinfo per-provider in the UI#1444

Closed
s3n-w6i wants to merge 15 commits into
nextcloud:mainfrom
s3n-w6i:feat/per_provider_enrich_userinfo
Closed

Allow setting enrich_login_id_token_with_userinfo per-provider in the UI#1444
s3n-w6i wants to merge 15 commits into
nextcloud:mainfrom
s3n-w6i:feat/per_provider_enrich_userinfo

Conversation

@s3n-w6i

@s3n-w6i s3n-w6i commented May 22, 2026

Copy link
Copy Markdown
Contributor

What

This change introduces a checkbox into the provider settings that allows enabling the existing enrich_login_id_token_with_userinfo option on a per-provider basis.
To be backwards compatible, if the global enrich_login_id_token_with_userinfo is set to true, the userinfo endpoint is still fetched for all providers, regardless of their per-provider setting.

Why

  • It depends on the provider whether the userinfo endpoint needs to be fetched, so a per-provider setting better represents that.
  • For people with a hosted Nextcloud offering like myself, there may not be an option to set the global configuration option.

Open questions

  • I have tested it successfully using a Keycloak instance. Are integration tests required?
  • Regarding migration: This is a new option enrichLoginIdTokenWithUserinfo on the provider's settings object. This does not require any database schema changes, right?

nextcloud-bot and others added 13 commits May 22, 2026 17:08
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
This reverts commit 7fcb03d.

Signed-off-by: Spitap <dev@asdrip.fr>
Signed-off-by: Spitap <dev@asdrip.fr>
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Fixed Disable Other Login Methods command.  Missed a /

Signed-off-by: JATippit <11259172+JATippit@users.noreply.github.com>
Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.1.0 to 3.1.2.
- [Release notes](https://github.com/fastify/fast-uri/releases)
- [Commits](fastify/fast-uri@v3.1.0...v3.1.2)

---
updated-dependencies:
- dependency-name: fast-uri
  dependency-version: 3.1.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [phpseclib/phpseclib](https://github.com/phpseclib/phpseclib) from 2.0.53 to 2.0.54.
- [Release notes](https://github.com/phpseclib/phpseclib/releases)
- [Changelog](https://github.com/phpseclib/phpseclib/blob/master/CHANGELOG.md)
- [Commits](phpseclib/phpseclib@2.0.53...2.0.54)

---
updated-dependencies:
- dependency-name: phpseclib/phpseclib
  dependency-version: 2.0.54
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.6 to 8.5.13.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@8.5.6...8.5.13)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.13
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [symfony/event-dispatcher](https://github.com/symfony/event-dispatcher) from 7.4.8 to 7.4.9.
- [Release notes](https://github.com/symfony/event-dispatcher/releases)
- [Changelog](https://github.com/symfony/event-dispatcher/blob/8.1/CHANGELOG.md)
- [Commits](symfony/event-dispatcher@v7.4.8...v7.4.9)

---
updated-dependencies:
- dependency-name: symfony/event-dispatcher
  dependency-version: 7.4.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@s3n-w6i s3n-w6i force-pushed the feat/per_provider_enrich_userinfo branch from 81eb7d4 to 3160bb8 Compare May 22, 2026 15:10
@s3n-w6i

s3n-w6i commented May 22, 2026

Copy link
Copy Markdown
Contributor Author

Closing to rework this on another branch with proper sign-off commits

@s3n-w6i s3n-w6i closed this May 22, 2026
@s3n-w6i s3n-w6i deleted the feat/per_provider_enrich_userinfo branch May 22, 2026 15:20
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants