Skip to content

fix: make loadUserInfo configurable instead of hardcoded - #47

Merged
mridang merged 1 commit into
zitadel:mainfrom
hannal:fix-loaduserinfo-hardcoded
Jan 30, 2026
Merged

fix: make loadUserInfo configurable instead of hardcoded#47
mridang merged 1 commit into
zitadel:mainfrom
hannal:fix-loaduserinfo-hardcoded

Conversation

@hannal

@hannal hannal commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Allow users to configure loadUserInfo option instead of hardcoding it to true
  • Maintain backward compatibility by defaulting to true when not specified

Problem

The loadUserInfo option was hardcoded to true, preventing users from disabling the userinfo endpoint call even when they have "User Info inside ID Token" enabled in their ZITADEL application settings.

Fixes #46

Changes

  • Modified createZitadelAuth() to use zitadelConfig.loadUserInfo ?? true instead of hardcoded true

@hifabienne hifabienne added the os-contribution This is a contribution from our open-source community label Dec 8, 2025
@elinashoko

Copy link
Copy Markdown

Thanks for your contribution, we'll have a look as soon as we can.

@elinashoko elinashoko moved this to 📋 Sprint Backlog in Product Management Dec 18, 2025
@mridang mridang self-assigned this Jan 30, 2026
@mridang
mridang self-requested a review January 30, 2026 02:35
@mridang
mridang merged commit 0970f74 into zitadel:main Jan 30, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from 📋 Sprint Backlog to ✅ Done in Product Management Jan 30, 2026
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

os-contribution This is a contribution from our open-source community

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

loadUserInfo is hardcoded to true, ignoring user configuration

4 participants