Skip to content

Set config to useHttpPath=true#301

Merged
jeschu1 merged 1 commit intomicrosoft:masterfrom
jeschu1:add_config
Oct 1, 2018
Merged

Set config to useHttpPath=true#301
jeschu1 merged 1 commit intomicrosoft:masterfrom
jeschu1:add_config

Conversation

@jeschu1
Copy link
Member

@jeschu1 jeschu1 commented Sep 25, 2018

Hostname is no longer sufficient for VSTS authentication. VSTS now requires dev.azure.com/account to determine the tenant.

By setting useHttpPath, credential managers will get the path which contains the account as the first parameter. They can then use this information for auth appropriately.

Please note this may require a reauth of the repository once as it move the token storage to include path.

@jeschu1 jeschu1 force-pushed the add_config branch 2 times, most recently from 38a6d00 to 2ef550a Compare September 26, 2018 13:48
@jeschu1 jeschu1 closed this Sep 26, 2018
@jeschu1 jeschu1 reopened this Sep 26, 2018
Copy link
Contributor

@sanoursa sanoursa left a comment

Choose a reason for hiding this comment

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

Looks good, with some minor cleanup.

{
Result gitCredentialOutput = this.InvokeGitAgainstDotGitFolder(
"credential fill",
"-c credential.useHttpPath=true credential fill",
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we have to set this config value both here and in GVFSVerb, please use a constant to make sure they always agree with each other.

@jeschu1 jeschu1 closed this Sep 27, 2018
@jeschu1 jeschu1 reopened this Sep 27, 2018
@jeschu1 jeschu1 closed this Sep 28, 2018
@jeschu1 jeschu1 reopened this Sep 28, 2018
Hostname is no longer sufficent for VSTS authentication. VSTS now requires dev.azure.com/account to determine the tenant.

By setting useHttpPath, credential managers will get the path which contains the account as the first parameter. They can then use this information for auth appropriately.
@jeschu1 jeschu1 merged commit bc5da49 into microsoft:master Oct 1, 2018
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.

3 participants