SQL Smartobject WCF service, Missing Authorization header

  • 23 November 2015
  • 1 reply
  • 3 views

Badge +2

Hi  

 

 

I am new to K2 Blackpearl . I am trying to build a portal with K2 Blackpearl as the backend approval workflow.  One part of the website needs some configuration data which renders links to Smartforms. I prefer to store this data in sql server and expose it as Smart Object Service and access it with WCF service. But with all the default configurations I get error in client as follows.

 

 Invoke: Missing Authorization header

 

I tried different combination to pass this authentication header to the service, nothing worked. Can anyone support me with some starter code to access the SQL smart object via WCF service?  Any help on this greatly appreciated

 

Thanks 

jGeorge


1 reply

Badge +2

Looked through the web I got the solution as follows,

 

Set client credentials AllowedImpersonationLevel as follows,

 

client.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;

 

Link : http://help.k2.com/kb001369

 

Reply