Skip to content

Conversation

@p3dr0rv
Copy link
Contributor

@p3dr0rv p3dr0rv commented Sep 15, 2025

AB#3370810

Move
getTenantFromIdentifier from WorkPlaceJoinUtil
getTenantIdFromLoginHint from AccountChooser

see https://github.com/AzureAD/microsoft-authentication-library-common-for-android/pull/2761/files

@p3dr0rv p3dr0rv marked this pull request as ready for review September 15, 2025 22:18
@p3dr0rv p3dr0rv requested a review from a team as a code owner September 15, 2025 22:18
Copilot AI review requested due to automatic review settings September 15, 2025 22:18
@github-actions
Copy link

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

Click here to Learn more.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new TenantUtil utility object that provides methods for extracting tenant information from various identifiers. The utility is designed to parse email addresses/UPNs and GUIDs to extract tenant hostnames and tenant IDs.

  • Adds regex-based validation for identifiers (email/UPN format or GUID format)
  • Implements tenant extraction from identifiers with hostname parsing for UPNs
  • Provides tenant ID resolution from login hints using Azure Active Directory configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@p3dr0rv p3dr0rv requested a review from a team as a code owner September 15, 2025 22:29
@github-actions
Copy link

✅ Work item link check complete. Description contains link AB#3370810 to an Azure Boards work item.

@github-actions github-actions bot changed the title Implement TenantUtil object with methods to extract tenant and tenantID from identifiers Implement TenantUtil object with methods to extract tenant and tenantID from identifiers, Fixes AB#3370810 Sep 15, 2025
@p3dr0rv p3dr0rv requested a review from Copilot September 16, 2025 00:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

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


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@p3dr0rv p3dr0rv merged commit 3faf17b into dev Sep 16, 2025
24 of 25 checks passed
@p3dr0rv p3dr0rv deleted the pedroro/tenantUtil branch September 16, 2025 20:40
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.

4 participants