Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fix for tf.exe domain authentication #291

Merged
merged 1 commit into from
Aug 10, 2017

Conversation

dfrencham
Copy link
Contributor

Fixes issue #246. On the Windows platform domain credentials are not included by the
argument builder.

This issue only affects credentials with a domain specified. If the user specifies a username in this format: domain\user - when retrieved by the credential manager, the domain portion is split and returned in CredentialInfo.domain. This affects the argumentBuilder, the domain is not included when passing the "login" property to tf.exe.

This issue causes authentication to fail. commandHelper.ProcessErrors assumes this is a local/server workspace issue and returns:
It appears you are using a Server workspace. Currently, TFVC support is limited to Local workspaces.

A possible workaround may be to use TEE-CLC and pass credentials in user@domain format. TF.exe only accepts domain\user format.

Fixes issue microsoft#246. In Windows domain credentials are not included by the
argument builder
@msftclas
Copy link

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@msftclas
Copy link

@dfrencham, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.

Thanks, Microsoft Pull Request Bot

@renzska
Copy link

renzska commented Aug 10, 2017

I'm hitting this exact issue. Thanks for the fix!

@jeffyoung
Copy link
Contributor

Thanks @dfrencham for the submission. I had a look and tried it out. I'll merge this and then follow up with a unit test to ensure we don't regress this going forward. I expect it'll get into a release early next week. Thanks again!

jeffyoung pushed a commit that referenced this pull request Aug 10, 2017
* Add unit test for #291 (ensuring domain is used with ArgumentBuilder)

* Ensure we log an exception when 'Device Flow' fails
@dfrencham dfrencham deleted the domain-credential-fix branch August 14, 2017 22:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants