Custom Security Provider

By default K2 uses AD for its authentication and authorisation mechanisms. It also ships with a Security provider which allows you to use a database as an alternative user information provider. You can also build your own custom Security Provider which can be plugged into K2.

The steps to achieve this involves writing a DLL implementing the IHostableSecurityProvider interface (SourceCode.HostServerInterfaces.dll in K2 install directory) and registering it with K2. You will need to update K2 database table entries and also need to sign and copy the DLL into the K2 install directory.

You will implement the methods required to work with your users and groups. K2 will use your code for authentication and authorisation.

This article has some sample code

Please check out these KBs: http://kb.k2workflow.com/articles/kb000331.aspx, http://kb.k2workflow.com/articles/kb000186.aspx

About

Consulting Technologist, K2 Expert, SharePoint Lover, Feature Dreamer, Smart Innovator, Wannabe Inventor, Hard working Entrepreneur

Posted in blackpearl

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

January 2009
M T W T F S S
« Dec   Feb »
 1234
567891011
12131415161718
19202122232425
262728293031  
Archives
Blog Stats
  • 54,866 hits

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 1,051 other followers

Follow

Get every new post delivered to your Inbox.

Join 1,051 other followers

%d bloggers like this: