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

  • Home
  • SEARCH
  • 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 6078035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:47:16+00:00 2026-05-23T10:47:16+00:00

This article got me thinking about what would happen with non-claims enabled ASP.NET applications

  • 0

This article got me thinking about what would happen with non-claims enabled ASP.NET applications when you federated them with ADFS via FedUtil.

The article suggests that the key to getting this working is to turn on the Claims to Windows Token Service (C2WTS). This service effectively turns an ADFS token into a Windows token.

So I built a quick ASP.NET application using Windows authentication, ran FedUtil and I can authenticate with ADFS using either the ADFS Windows authentication or StarterSTS. The problem is that C2WTS isn’t running so it works although I expected that it wouldn’t.

Obviously you have no access to the claims objects inside the application but otherwise it works with no problems.

This does, however, raise a problem. How do you sign out from ADFS since you have no access to FederatedPassiveSignOut etc?

Are tokens being sent to the application?

Is it just ignoring them without throwing any exceptions?

Does C2WTS need to be part of the picture?

Have I missed something?

  • 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-05-23T10:47:17+00:00Added an answer on May 23, 2026 at 10:47 am

    Asking on other forums, Steve Syfuhs replied:

    FedUtil modifies the web.config so the authentication method is ‘None’, and inserts some handlers very early in the web request to see if a session exists, and if one doesn’t a session is created by redirecting to the specified STS, the STS does it’s thing, and passes a token back to the site. Another handler receives the token and builds an IClaimsPrincipal object based on the token. The Thread.CurrentPrincipal object is set to the IClaimsPrincipal. As such, Windows Authentication is NOT happening in the web application (but it is in ADFS).

    OWA (as should all well built web applications) looks into Thread.CurrentPrincipal for the identity of the user. As long as the values provided by the STS match whatever OWA is expecting, OWA is happy. Certain claims are available through the Thread.CurrentPrincipal, such as the Name claim, which is what OWA uses to get the user name. C2WTS was created to act as a shim between an application that understands Claims and an application that doesn’t by creating a Windows Token and attaching it to the user’s session. OWA needs to call into Active Directory to get certain bits of information, and it does it through Windows Authentication, and therefore needs a Windows Token.

    In this instance there is no way to sign out of ADFS, but you can still kill the session in OWA or your custom application by deleting cookies. In a custom web application you can link to the ADFS signout page, which is https://adfsserver/adfs/ls/?wa=wsignout1.0 and that will sign out of ADFS.

    Update:

    Just to document for others:

    This approach works in terms of outsourcing the authentication but there are three problems:

    • There is no access to the claims objects.
    • You have to roll your own sign-out.
    • There is something “different” about the Federation Metadata. You cannot add the application as a RP in ADFS via the URL. You have to use the import file mechanism. This means that there is no way to update the metadata so if there are any changes to the RP you have to delete and re-configure.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was reading this article about thread safety in Singletons, and it got me
I am using asp.net mvc2 and mef to create pluggable architecture from this article
After reading this article on thedailywtf.com, I'm not sure that I really got the
I've got a PHP-fpm setup on nginx setup according to this article: http://interfacelab.com/nginx-php-fpm-apc-awesome/ PHP
I got a little curious after reading this /. article over hijacking HTTPS cookies.
So I was following this article and got to the Setting up Eclipse for
i'm learning webpy through this tutorial: http://webpy.org/cookbook/application_processors when i see this article i got
Got astonished when I read on the page 4 of this article that stack
While reading this article, I got a doubt. I understood that while trasferring small
I've always used cURL for this sort of stuff, but this article got me

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.