-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
AuthHandshakeMessageHandler: sync behavior with other clients. #43491
Conversation
- Removes the special handling of the '<token>' username. This value is used as a sentinel from credential-helper scripts/programs. It is already handled by the docker-creds-provider .NET library. - When there is no identity token, use the username/password with Basic auth.
@baronfel ptal. This is my understanding of the desired behavior after reading through some of the other clients code. I am going to do some validation. I wanted to make a PR already to get early feedback. I will include some tests when we settled on the behavior. |
I've added a test that mocks the server behavior. Compared to the
|
THANK YOU for the tests here - that's making it much easier to debug and reason about. |
I can't test this against baronfel/sdk-container-demo because this is targeted at main and the package produced has assembly load issues on a 9 SDK. |
I can target the 9.0 branch, if that helps for verification? |
That would be incredibly helpful. If testing passed we were going to try to backport the fix to 9 anyway. |
f83a09a
to
64204ed
Compare
The PR is now targeting the 9.0 branch. |
I've changed the target branch back to main. Sorry for code view requests, it is out of my control. |
The one test failure here is the crypto 'no more endpoints' known build error, not relevant to this PR. |
@tmds it looks like the full-framework test leg is consistently failing, can you take a look? |
@baronfel I don't see anything other than the mentioned "There are no more endpoints available from the endpoint mapper." in the Azure CI. Do you see something different in some log/artifact? I haven't tried to reproduce the issue by running the full-framework tests because I don't have a Windows machine. |
Oh, in that case that's fine. This error has been endemic recently :( |
I skimmed through dotnet/dnceng#3844 and it may not be fixed soon. Does it affect many tests besides If you need to continuously manually filter these out, it may be worth either skipping tests (under a limited set of conditions), or catching the exception and allowing the test to pass at that point. |
@baronfel is this good to merge? Or are we waiting for additional reviewers? Once merged, can you initiate the backport to 9.0? |
Just awaiting review - we can trigger the backport for sure! |
@dotnet/product-construction had to rerun this PR due to the sdk-unified-build leg, I was told to ping you as this happens. |
/azp run sdk-unified-build |
Azure Pipelines successfully started running 1 pipeline(s). |
/backport to release/9.0.1xx |
Started backporting to release/9.0.1xx: https://github.com/dotnet/sdk/actions/runs/11220724421 |
Fixes #43319
Removes the special handling of the '<token>' username. This value is used as a sentinel from credential-helper scripts/programs. It is already handled by the docker-creds-provider .NET library.
When there is no identity token, use the username/password with Basic auth.