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

BasicAuthCredential requires SSL encryption. The tool does not work for ADO Server instances running http #755

Open
macdonald-keith-vmware opened this issue Apr 13, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@macdonald-keith-vmware
Copy link

I am attempting to import the Jira work items I extracted to an on-premise AzureDevops server instance

wi-import --token XXXXX --url http:/// --config myconfig-agile.json --force

The log indicates an exception is generated:
[I][15:10:44] Connecting to Azure DevOps/TFS...
[E][15:10:44] Unexpected migration error.
[System.InvalidOperationException] System.InvalidOperationException: Basic authentication requires a secure connection to the server.
at Microsoft.VisualStudio.Services.Common.VssBasicCredential.OnCreateTokenProvider(Uri serverUrl, IHttpResponse response)
at Microsoft.VisualStudio.Services.Common.IssuedTokenCredential.CreateTokenProvider(Uri serverUrl, IHttpResponse response, IssuedToken failedToken)
at Microsoft.VisualStudio.Services.Common.VssCredentials.TryGetTokenProvider(Uri serverUrl, IssuedTokenProvider& provider)
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.d__17.MoveNext()

I have validated the token is correct and has appropriate permissions. Is the problem because the server is using http instead of https?

Tool version

  • v3.0.115

Attachments
import.log

@Alexander-Hjelm Alexander-Hjelm self-assigned this Apr 15, 2023
@Alexander-Hjelm Alexander-Hjelm changed the title Error when trying to import to AzureDevOps BasicAuthCredential requires SSL encryption. The tool does not work for ADO Server instances running http Apr 15, 2023
@Alexander-Hjelm
Copy link
Collaborator

I think BasicAuthCredential requires https://. Running the migrator over an unencrypted connection should be something to consider, maybe. I'll mark this issue as a feature request.

The question is why you would need to run ADO Server unencrypted in the first place?

@Alexander-Hjelm Alexander-Hjelm added enhancement New feature or request and removed support labels Apr 15, 2023
@Alexander-Hjelm
Copy link
Collaborator

@Alexander-Hjelm Alexander-Hjelm removed their assignment Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants