Authenticating with SQLUM
To use SQLUM authentication with K2 Mobile, you need to disable Windows Authentication for the K2API by following these steps:
- Open IIS and expand the K2 Site on your server.
-
Select the K2Api service and click Authentication in the IIS section:
- Disable Windows Authentication by selecting it and clicking the Disable action on the right:
- Enable Anonymous Authentication, by selecting it and clicking the Enable action on the right:
- Open the web.config of the K2API located at the following path:
[install drive]:\Program Files (x86)\K2 blackpearl\WebServices\K2Api
- 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> - Set the Integrated= values to False. If the Integrated= value is set to True, the username and password is ignored.