Skip to content

Configuration for WIF session helper APIs in Thinktecture IdentityModel

May 28, 2013

I just added a custom configuration section in Thinktecture IdentityModel that will automatically drive the various SAM and FAM helper functions I added a while ago. The configuration looks something like this:

    <section name="securitySessionConfiguration" 
             type="Thinktecture.IdentityModel.Web.Configuration.SecuritySessionSection, Thinktecture.IdentityModel"/>

    sessionTokenCacheType="WebRP.EF.EFTokenCacheRepository, WebRP"

With this in place you no longer need to explicitly invoke the various PassiveSessionConfiguration or PassiveModuleConfiguration APIs from global.asax. Also, each of these attributes is optional so you only need to specify the ones you care about.


6 Comments leave one →
  1. May 28, 2013 1:56 pm

    Reblogged this on

  2. Michael P. permalink
    May 29, 2013 7:01 am

    I’ve just tried to download the Thinktecture.IdentityModel.45-master in order to run the Web API Security WebHost. Unfortunately it’s broken as there is no securitySessionConfiguration in the config file and adding the configuration above doesn’t work either as the referencedTokenCacheType is not part of the project. I’ve had to disable the PreApplicationStartMethod to get the sample running.

  3. RonyK permalink
    June 10, 2013 7:39 am

    Is the persistentSessionDuration configuration has to come along with persistentCookiesOnPassiveRedirects=”true”, or does it replace it?

    • June 10, 2013 10:23 am

      ConfigurePersistentSessions sets the persistentCookiesOnPassiveRedirects flag.


  1. Project does not compile after update of thinktecture.identitymodel 2.6 | Technology & Programming

Leave a Reply

Fill in your details below or click an icon to log in: Logo

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

Facebook photo

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

Connecting to %s

%d bloggers like this: