Skip to content

feat: sync OIDC phone and picture claims - #124

Merged
qianmoQ merged 2 commits into
devlive-community:devfrom
flyer5200:codex/oidc-userinfo-profile
Nov 3, 2026
Merged

qianmoQ merged 2 commits into
devlive-community:devfrom
flyer5200:codex/oidc-userinfo-profile

Conversation

@flyer5200

Copy link
Copy Markdown

Changelog category

  • New Feature

Changelog entry

  • Sync phone numbers and picture URLs from OIDC identity providers and expose them through UserInfo.

Affected version

  • Latest development version

Background and implementation

Applications using GrantForge as an OIDC provider need user phone numbers and avatar URLs when identities come from external providers such as Casdoor.

Persist phone and picture fields on local accounts and update them from upstream OIDC claims at sign-in. The phone claim is configurable (default phone for Casdoor); picture uses the standard claim. Missing upstream values leave stored values unchanged. Add the phone scope to OAuth client configuration, return phone_number for that scope and picture for profile, and update the console, API contract, migrations and documentation.

Validation

  • UserInfo, OIDC configuration, external account, federated sign-in and OpenAPI contract tests (Java 21)
  • Java Checkstyle, PMD and SpotBugs
  • Frontend type checking, ESLint, identity source and OAuth client tests; i18n key check
  • Manual Casdoor acceptance of phone_number and picture

@qianmoQ
qianmoQ merged commit 241a912 into devlive-community:dev Nov 3, 2026
33 checks passed
@flyer5200
flyer5200 deleted the codex/oidc-userinfo-profile branch November 3, 2026 08:04
@flyer5200
flyer5200 restored the codex/oidc-userinfo-profile branch November 3, 2026 08:05
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.

2 participants