Attempting to connect to the SourceCode.Workflow.Client API with static credentials results in error "ClientException: Authentication failed for user K2Service"

  • 16 February 2021
  • 0 replies
  • 45 views

Userlevel 5
Badge +20


 




Attempting to connect to the SourceCode.Workflow.Client API with static credentials results in error ClientException: Authentication failed for user K2Service
















This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.



LEGACY/ARCHIVED CONTENT

This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.


Issue


Attempting to connect to the SourceCode.Workflow.Client API with static credentials results in error:


 


"ClientException: Authentication failed for user K2Service


 


SourceCode.Hosting.Client.BaseAPI.SCConnectionStringBuilder builder = new SourceCode.Hosting.Client.BaseAPI.SCConnectionStringBuilder();
builder.Authenticate = true;
builder.Host = "k2.denallix.com";
builder.Port = 5252;
builder.Integrated = false;
builder.IsPrimaryLogin = true;
builder.SecurityLabelName = "K2";
builder.WindowsDomain = "DENALLIX";
builder.UserID = "K2Service";
builder.Password = {password}";
SourceCode.Workflow.Client.Connection WorkflowClientConnection = new SourceCode.Workflow.Client.Connection();
WorkflowClientConnection.Open("k2.denallix.com", builder.ConnectionString);"


 


 


 


 


 


Symptoms


Although the WindowsDomain field is specified, the UserID field is expecting a string in the format "DOMAINusername".


Resolution


Specify the UserID in the 'DOMAINusername' format, i.e.:


builder.UserID = @"DENALLIXK2Service";





0 replies

Be the first to reply!

Reply