Symptoms
I want to create a form that allows user to insert their SAP credential cache for SSO.
I used the code provided here (http://help.k2.com/kb000360) in my custom service broker, and created a SmartObject from it. I then used the SmartObject to create a View in Smartforms. The View works great for K2 service account and administrator, but when I ran the View using a regular user account, the credential does not get cached.
Diagnoses
The code works when executed as a console. However, when the code is placed within a custom service broker, only the K2 service account and administrator account is able to cache the SAP credential.
Resolution
The code provided from the KB has not been tested within a custom service broker. If you want to provide users with a form to cache secondary credentials, you will have to create your own custom form, and include the code from the KB.