Skip to content

Fix problems with userinfo claims by allowing them to be disabled#1348

Merged
julien-nc merged 2 commits intonextcloud:mainfrom
carlottostromstedt:optional-userinfo-claims
Feb 23, 2026
Merged

Fix problems with userinfo claims by allowing them to be disabled#1348
julien-nc merged 2 commits intonextcloud:mainfrom
carlottostromstedt:optional-userinfo-claims

Conversation

@carlottostromstedt
Copy link
Contributor

When trying to use the the Application with Google as a provider, the following error is returned:

Error 400: invalid_request  
Invalid parameter value for claims: Invalid claims: claims must have a single object value "id_token"

To fix this issue i have added the ability to disable userinfo claims by setting 'send_userinfo_claims' => false in the config.

This adds toggleable compatibility for providers such as Google without breaking current compatibility.

I've tested this fix with my Nextcloud Instance and it fixes the problem at hand.


Fixes: #1121 Google OIDC login fails in user_oidc v7.2.0 due to unconditionally injected claims

Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and clean. Thank you!

Signed-off-by: Carl Otto Strömstedt <carl.ottostromstedt@gmail.com>
Signed-off-by: Carl Otto Strömstedt <carl.ottostromstedt@gmail.com>
@julien-nc julien-nc force-pushed the optional-userinfo-claims branch from 8cb52bc to 9f506f5 Compare February 23, 2026 16:57
@julien-nc julien-nc enabled auto-merge February 23, 2026 16:57
@julien-nc
Copy link
Member

Rebased on main

@julien-nc julien-nc merged commit b16f24a into nextcloud:main Feb 23, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Google OIDC login fails in user_oidc v7.2.0 due to unconditionally injected claims

2 participants