Skip to content

Conversation

@MantavyaDh
Copy link

This pull request updates the credential handling logic in the ServerOMFunctions.ps1 PowerShell script to improve compatibility with newer versions of the Client Object Model (ClientOM) for Azure DevOps/TFS. The changes prioritize the use of newer authentication types when available, while maintaining support for legacy credentials.

Credential Handling Improvements:

  • The Get-TfsClientCredentials function now attempts to use VssClientCredentials (available in ClientOM 14+) before falling back to the legacy TfsClientCredentials. It also dynamically selects the appropriate federated credential type (VssOAuthAccessTokenCredential for ClientOM 16+, or VssOAuthCredential for ClientOM 14).

Assembly Resolution Enhancements:

  • The Get-OMType function now additionally checks for Interactive.dll when resolving types, ensuring support for scenarios where VssClientCredentials has moved to this assembly in ClientOM 16+.

@MantavyaDh
Copy link
Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

2 participants