Skip to content

Add flatUsername attribute to UserAttributes builder Fixes AB#3607103#2513

Merged
spetrescu84 merged 7 commits into
devfrom
spetrescu/add-flatusername
Jun 9, 2026
Merged

Add flatUsername attribute to UserAttributes builder Fixes AB#3607103#2513
spetrescu84 merged 7 commits into
devfrom
spetrescu/add-flatusername

Conversation

@spetrescu84

@spetrescu84 spetrescu84 commented May 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a new flatusername built-in attribute to the UserAttributes.Builder class, following the existing pattern for other attributes (city, country, surname, etc.).

Changes

  • UserAttributes.kt: Added FLAT_USERNAME constant and flatUsername() builder method with KDoc.
  • SignUpEmailPasswordAttributesTest.kt: Updated to exercise the new flatUsername attribute alongside existing attributes.

AB#3607103

Add a new 'flatusername' attribute to the UserAttributes builder class,
following the existing pattern for built-in attributes. Updated
SignUpEmailPasswordAttributesTest to exercise the new attribute.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 15, 2026 14:46
@spetrescu84 spetrescu84 requested a review from a team as a code owner May 15, 2026 14:46
@github-actions github-actions Bot added the msal label May 15, 2026
@github-actions

Copy link
Copy Markdown

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a flatUsername convenience method to the Native Auth UserAttributes.Builder, allowing callers to submit the built-in flatusername signup attribute through the public builder API.

Changes:

  • Added a FLAT_USERNAME key and flatUsername() builder method.
  • Updated an existing Native Auth signup attributes E2E test to include the new builder method.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
msal/src/main/java/com/microsoft/identity/nativeauth/UserAttributes.kt Adds the new built-in user attribute builder method.
msal/src/test/java/com/microsoft/identity/client/e2e/tests/network/nativeauth/SignUpEmailPasswordAttributesTest.kt Adds flatUsername() usage to an existing signup attributes test.

@spetrescu84 spetrescu84 changed the title Add flatUsername attribute to UserAttributes builder Add flatUsername attribute to UserAttributes builder Fixes AB#3607103 May 15, 2026
@spetrescu84 spetrescu84 self-assigned this May 15, 2026
spetrescu84 and others added 2 commits May 15, 2026 17:39
Adds enabled unit tests verifying the flatUsername builder method
produces the correct map key and works alongside other attributes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@spetrescu84 spetrescu84 merged commit 7c4974f into dev Jun 9, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants