locked
FederatedAuthentication.WSFederationAuthenticationModule.SecurityTokenValidated event not firing RRS feed

  • Question

  • FederatedAuthentication.WSFederationAuthenticationModule.SecurityTokenValidated event not firing in .NET framework 4.5

    indentity framework 4.0

    Event is wired up in asp.net web api project global.asax application_start

    below lines are added to config file

    <add name="WSFederationAuthenticationModule" type="System.IdentityModel.Services.WSFederationAuthenticationModule, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
          <add name="SessionAuthenticationModule" type="System.IdentityModel.Services.SessionAuthenticationModule, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  />    

    Monday, September 16, 2013 2:21 AM

All replies

  • Wiring up as in += ?

    This does not work - you need to add an event handler in global.asax with the ModuleName_EventName convention.


    Dominick Baier | thinktecture | | http://www.leastprivilege.com | @leastprivilege

    Sunday, September 22, 2013 10:18 AM
  • Yes  I am doing exactly that

                FederatedAuthentication.WSFederationAuthenticationModule.SecurityTokenValidated += new EventHandler<SecurityTokenValidatedEventArgs>(WSFederationAuthenticationModule_SecurityTokenValidated);

    Thanks

    Monday, September 23, 2013 2:57 PM