Skip to content

[Bug] ConfidentialClientApplicationBuilder should use string.IsNullOrWhiteSpace for AzureRegion validation #5185

@ksaaf

Description

@ksaaf

Library version used

Latest

.NET version

NET 8

Scenario

ConfidentialClient - service to service (AcquireTokenForClient)

Is this a new or an existing app?

The app is in production, and I have upgraded to a new version of MSAL

Issue description and reproduction steps

This issue is identified during review of the PR 5182.

Code references to fix (there may be others).

Relevant code snippets

Expected behavior

Whitspace should cause a failure.

Identity provider

Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)

Regression

No response

Solution and workarounds

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions