Skip to content

Fix/display name#1305

Open
flashguerdon wants to merge 4 commits intouc-cdis:masterfrom
AustralianBioCommons:fix/display_name
Open

Fix/display name#1305
flashguerdon wants to merge 4 commits intouc-cdis:masterfrom
AustralianBioCommons:fix/display_name

Conversation

@flashguerdon
Copy link
Copy Markdown
Contributor

Link to JIRA ticket if there is one:

New Features

Breaking Changes

Bug Fixes

  • Add support for preferred_username claim in display name generation
  • Make OIDC claim field names configurable per IdP
  • Refactor to reduce repetition when fetching IdP config
  • Update post_login to check preferred_username before falling back to email/names

This allows IdPs to set user-friendly display names (e.g., "john.smith")
via the preferred_username claim, improving UX over email addresses.

Fallback hierarchy: preferred_username → email → "firstname lastname" → username

Improvements

Dependency updates

Deployment changes

- Add support for preferred_username claim in display name generation
- Make OIDC preferred_username claim field names configurable per IdP
- Refactor to reduce repetition when fetching IdP config
- Update post_login to check preferred_username before falling back to email/names

This allows IdPs to set user-friendly display names (e.g., "john.smith")
via the preferred_username claim, improving UX over email addresses.

Fallback hierarchy: preferred_username → email → "firstname lastname" → username
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.

1 participant