Authenticating with SQLUM

To use SQLUM authentication with K2 Mobile, you need to disable Windows Authentication for the K2API by following these steps:

  1. Open IIS and expand the K2 Site on your server.
  2. Select the K2Api service and click Authentication in the IIS section:
  3. Disable Windows Authentication by selecting it and clicking the Disable action on the right:
  4. Enable Anonymous Authentication, by selecting it and clicking the Enable action on the right:
  5. Open the web.config of the K2API located at the following path:

    [install drive]:\Program Files (x86)\K2 blackpearl\WebServices\K2Api

  6. In the <connectionStrings> section, add the K2 Service Account and password in place of the bracketed values:
    <connectionStrings>
    <add name="K2.Workflow"connectionString="UserID={k2 service account};Password={password};Integrated=False;IsPrimaryLogin=True;Authenticate=True;EncryptedPassword=False;Host=servername;Port=5252"/>
    <add name="K2.HostServer"connectionString="UserID={k2 service account};Password={password};Integrated=False;IsPrimaryLogin=True;Authenticate=True;EncryptedPassword=False;Host=servername;Port=5555"/>
    </connectionStrings>

  7. Set the Integrated= values to False. If the Integrated= value is set to True, the username and password is ignored.