Skip to main content

Hi,

 

I'm using Forms authentication and K2SQL User Manager.

 

I need to implement that when a user logs into my web application, it automaticly opens the Smart Form containing the Worklist control for the corresponding SQL user, without displaying the K2 Forms login window.

 

Can I login the K2SQL user into the Smart Form in VB.NET code?

 

I have tried the impersonation code and displaying a custom worklist in a gridview, but that's not the solution, since the user still has to login with Forms when he wants to view the Smart Form for the worklist item.

 

I need to make a unified login between my application and K2. Can this be done?

 

 

Bnose,

 

K2 Single Sign On may be the functionality you're looking for:  http://help.k2.com/onlinehelp/k2blackpearl/icg/current/webframe.html#credentials_delegation_-_single_sign_on.html

At some point however, the anonymous user is going to have to be authenticated one way or another to gain access, whether it be through forms auth (which allows you to switch users around a bit easier), or claims authentication, or windows authentication.  That said, SSO should allow that sign on to occur once and only once, instead of multiple times.

 

Switching users as you described in previous posts with SSO may become problematic, but when it comes to providing credentials for third party applications, SSO seems like exactly what you're looking for.

 

Regards,

 

Mike


Hi Mike, thanks for the reply.

 

Could you please give me an example how to set up Single Sign On and use it?

 

I found article http://peterblommendaal.wordpress.com/2013/01/23/k2-smartforms-and-sharepoint-single-sign-on/, but that is for sharepoint and I don't use sharepoint. I looked through that code a bit, and if I understand correctly, the key to unified login is creating the K2 authentication cookies in my application. Am I right on that one?

 

I'm using SQL User Manager and Forms authentication. Do I need to develop a custom security provider for K2 in order to get the Single Sign On working?


Has anyone done this? All help would be appriciated.

 

I'm having problem with cookies, what is the name of the K2 login cookie and what's the domain?

 

K2 creates FedAuth to FedAuth3 cookies when I login through the smartforms page, do I need to create this cookies with the encrypted security token for my user? Or is the .K2Auth cookie the right one?

 

And what needs to be the domain for the cookies? When I'm debuging my web application is on localhost:port, but K2 is on http://machineName:port.

 

Do I need to develop my own security provider, so that K2 will take the cookies I've created?

 

Please help.


Reply