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

Adding an option to disable instance discovery in AcquirePoPTokenConfidential #595

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

bganapa
Copy link
Member

@bganapa bganapa commented Jan 16, 2025

In autonomous (completely disconnected) environments to disable authority validation and instance discovery, msal provides an option with WithInstanceDiscovery(false) in the client creation.

The PR introduces a param instanceDiscovery in AcquirePoPTokenConfidential to disable instance discovery and calls WithInstanceDiscovery

The other code paths where AcquirePoPTokenConfidential is called , the default value of true is set. When AcquirePoPTokenConfidential is called from Client Side Proxy (arcproxy) , the value will be customized depending on whether the current cloud is autonomous (disconnected) or not

@JorgeDaboub
Copy link
Contributor

LGTM

@JorgeDaboub
Copy link
Contributor

@bganapa There appears to already be an active PR for Winfield that I was unaware of: #593

@bganapa
Copy link
Member Author

bganapa commented Jan 19, 2025

@bganapa There appears to already be an active PR for Winfield that I was unaware of: #593
I looked at the other PR, two different set of files. I think we can follow a similar approach in both the PRs. @julienstroheker to provide inputs here

@JorgeDaboub
Copy link
Contributor

LGTM

Copy link
Contributor

@weinong weinong left a comment

Choose a reason for hiding this comment

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

LGTM

@weinong weinong merged commit 76f17d0 into Azure:main Jan 22, 2025
4 checks passed
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