Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9025211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:12:59+00:00 2026-06-16T06:12:59+00:00

Using WIF with .NET 4.5 in MVC4 app with Ninject Here’s the situation –

  • 0

Using WIF with .NET 4.5 in MVC4 app with Ninject

Here’s the situation – I have a custom ClaimsAuthenticationManager subclass called TenantAccessClaimsAuthenticationManager that does some claims transformation. The TenantAccessClaimsAuthenticationManager needs a IRepository object to be injected into it (using ninject).

The .NET 4.5 impl of WIF suggests that I can stick my custom claims authentication manager in the web.config – however, this approach can only instantiate the object via a no-args ctor.

The second approach I had is to not have anything int the web.config, but in App_start, get a handle to the WIF configuration and stick in the TenantAccessClaimsAuthenticationManager in RegisterServices

How do I get a handle to the currently application’s WIF configuration context? MSDN docs aren’t helping.

Edit: Obviously the problem is that the onServiceConfigurationCreated event is no longer available. What’s the best way to do this now

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T06:13:00+00:00Added an answer on June 16, 2026 at 6:13 am

    The event is still available!

    code://System.IdentityModel.Services:4.0.0.0:b77a5c561934e089/System.IdentityModel.Services.FederatedAuthentication/event:FederationConfigurationCreated:System.EventHandler

    More specifically, the event is available at FederatedAuthentication.FederationConfigurationCreated. An example implementation is below:

    FederatedAuthentication.FederationConfigurationCreated += (sender, e) => {
        e.FederationConfiguration.IdentityConfiguration.ClaimsAuthenticationManager = new MyCustomClaimsAuthenticationManager();
    }
    

    There’s a blog post at http://dunnry.com/blog/2012/12/20/SettingClaimsAuthenticationManagerProgrammaticallyInNET45.aspx with more information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have implemented SSO in a .NET web application using Windows Identity Foundation (WIF).
I am using WIF and claims-based security in a MVC app and custom logic
I'm using Windows Identity Foundation (WIF) for authentication in my ASP.NET MVC 3 project.
I have a basic 3 tier app Presentation/Web (ASP.NET MVC) Application Services (WCF, hosted
So here is the setup. I have a STS Provider and 2 ASP.NET MVC
We are developing an MVC app using STS. We used the WIF tools to
I have successfully created a working custom STS using the project templates for the
I am looking at securing some WCF services using WIF, and have read within
I am using WIF with WS Federation so that my ASP.NET application can authenticate
I'm developing web application using ASP.NET MVC + WCF secured by WIF. I'm using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.