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

Fix valid host check for vanity urls #392

Merged
merged 1 commit into from
Apr 19, 2023
Merged

Conversation

JohnSchmeichel
Copy link
Member

The valid host checks ensure we don't make an extra http probe, but no longer correctly handle the vanity url changes where the organization is no longer part of the host name. Double checked old and new style urls for DevFabric, AppFabric, and prod.

@JohnSchmeichel JohnSchmeichel merged commit 25c1c46 into master Apr 19, 2023
2 checks passed
@JohnSchmeichel JohnSchmeichel deleted the johsch/known-host-fix branch April 24, 2023 16:01
JohnSchmeichel added a commit that referenced this pull request Apr 24, 2023
All of the methods off of IAuthUtil will probe the same url to get
response headers. We were making 3 requests for the same response, and
after #392 we made one less in the common case. Adding an internal cache
to simply cache the response headers by url. It's possible to refactor
to make this a little more explicit (e.g. pull the headers once and pass
that around) but those changes ended up being quite large and may cause
more work with planned changes.

Also passing the HttpCompletionOption.ResponseHeadersRead option since
we don't care about the request body or any trailing headers.
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.

None yet

2 participants