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 9007815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:47:28+00:00 2026-06-16T01:47:28+00:00

Okay, so, I’m using Thinktecture IdentityModel 4.0 (tt.idm) to accept incoming SAML2 security tokens

  • 0

Okay, so, I’m using Thinktecture IdentityModel 4.0 (tt.idm) to accept incoming SAML2 security tokens via my WebAPIs and translate them into ClaimsPrincipals. And I have a project that works the way I expect, based on the samples that come with tt.idm.

The only problem is that all of the samples (and, by extension, my project) use hardcoded SecurityTokenHandlerConfiguration objects, and I’d like to use the settings in my WIF configuration.

So, I currently have something that looks like this:

 public static AuthenticationConfiguration Create()
    {
        var config = new AuthenticationConfiguration();
        var idsrvRegistry = new ConfigurationBasedIssuerNameRegistry();

        idsrvRegistry.AddTrustedIssuer("*THUMBPRINT REDACTED*", "*ISSUERNAME REDACTED*");

        var idsrvConfig = new SecurityTokenHandlerConfiguration();

        idsrvConfig.AudienceRestriction.AllowedAudienceUris.Add(new Uri("http://somerealm.com"));
        idsrvConfig.IssuerNameRegistry = idsrvRegistry;
        idsrvConfig.CertificateValidator = X509CertificateValidator.None;

        config.AddSaml2(idsrvConfig, AuthenticationOptions.ForAuthorizationHeader("SSO_SAML"));

        return config;
    }

But, I’d like to load those values from my configuration – whether automatically, by loading the microsoft.identityModel configuration section, or…whatever makes sense.

So far, though, nothing has worked – just newing up a ConfigurationBasedIssuerNameRegistry, for instance, yields an empty IssuerNameRegistry. And loading up the microsoft.identityModel configuration section yields … a configuration section with essentially no properties.

Is there a way to tell tt.idm to load from the current configuration? Or a way to tell WIF to?

How should I proceed? o.O

  • 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-16T01:47:31+00:00Added an answer on June 16, 2026 at 1:47 am

    You have to manually read the values from config and assign them in your Create Method.

    You can use FederatedAuthentication or IdentityConfiguration to read from config.

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

Sidebar

Related Questions

Okay so I am developing an advanced framework in PHP using MVC and want
Okay, this is driving me nuts. I am using canvas to draw a gauge
Okay so I'm using the jQuery autocomplete working with my database of locations and
Okay, so I'm trying to set a variable via a javascript method call. However
Okay, my code is currently: public MySqlDataReader CreateQuery(string queryString, string connectionString ) { using
Okay so I have a list of addresses and next them there is a
Okay so I can't figure this out. Like a file that I using grep
Okay, so I know that using eval() isn't great, but I haven't been able
Okay, I'm reading about Linux kernel development and there are some code snippets using
Okay, I want to use one layout and change my strings programatically using the

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.