Skip to main content
Nintex Community Menu Bar

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

  • February 16, 2021
  • 0 replies
  • 68 views
  • Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21
  • Nintex Employee
  • 675 replies
 

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";
Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings