Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw a friendly exception instead of NullRef for regional scenario. … #2965

Merged
merged 2 commits into from
Oct 20, 2021

Conversation

bgavrilMS
Copy link
Member

@bgavrilMS bgavrilMS commented Oct 19, 2021

…See #2837

Provides a better experience (friendly exception instead of null ref) for #2837, but doesn't fully fix it.

Changes proposed in this request
Regional has different rules for instance discovery, so we can't check if the request authority is an alias of the app authority.
Proposal is to ask developers to use WithTenantId instead.

Testing
unit

Performance impact
negligible (1 extra string comparison)

Copy link
Contributor

@jmprieur jmprieur left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks @bgavrilMS

@bgavrilMS bgavrilMS linked an issue Oct 20, 2021 that may be closed by this pull request
7 tasks
@bgavrilMS bgavrilMS merged commit 936a13b into bogavril/2280 Oct 20, 2021
@bgavrilMS bgavrilMS deleted the bogavril/nullreffix branch October 20, 2021 10:51
bgavrilMS added a commit that referenced this pull request Oct 20, 2021
#2965)

* Throw a friendly exception instead of NullRef for regional scenario. See #2837

* PR
bgavrilMS added a commit that referenced this pull request Oct 20, 2021
#2965)

* Throw a friendly exception instead of NullRef for regional scenario. See #2837

* PR
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.

[Bug] NullReferenceException from MSAL when using region with CCA
4 participants