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

The Archive Base Latest Questions

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

I have successfully integrated SSO with WIF on my two Web Domain. Now I

  • 0

I have successfully integrated SSO with WIF on my two Web Domain. Now I have a requirement that some users sign on using SSO and other users do not use SSO. How I can achieve this thing?

I would appreciate your help,

Thanks

Shahram Javed

  • 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-25T12:47:23+00:00Added an answer on May 25, 2026 at 12:47 pm

    Your question is a little vague so maybe this is not the correct answer. Let me relate our story (which Eugenio helped with) with the hopes it helps the OP or someone else. I’m interpreting “not for other user” as that some users do not use SSO: presumably they use forms authentication or something different.

    We use WIF for SSO in a web application that also supports a wif-implemented version of forms authentication.

    If someone comes to the Sign In page and provides a user name and password, we use WIF to set a self-issued ClaimsPrincipal. Essentially, the website is providing claims to itself. FederatedAuthentication is used in the same way that FormsAuthentication normally is: set a cookie using a static method on FederatedAuthentication. Bit different, but basically the same principal.

    var token = FederatedAuthentication.SessionAuthenticationModule
        .CreateSessionSecurityToken(claimsPrincipal, "MyApp.Token",
        DateTime.UtcNow, DateTime.UtcNow.AddDays(7), false);
    FederatedAuthentication.SessionAuthenticationModule
        .AuthenticateSessionSecurityToken(token, true);
    

    Our web app uses a single trusted provider (an ADFS server that negotiates with N federated partners). We need a custom way to decide whether to to redirect unauthenticated users to the Sign In page or to ADFS for SSO users. We disable passive redirect so WIF doesn’t automatically send people to ADFS.

    <wsFederation passiveRedirectEnabled="false"
        issuer="https://adfs.ourplace.com/adfs/ls/"
        realm="http://www.ourplace.com" .../>
    

    From here we use an authentication attribute (we use ASP.NET MVC but whatever is appropriate for you).

    public class MyAuthorizeAttribute : FilterAttribute, IAuthorizationFilter
    {
        public void OnAuthorization(AuthorizationContext filterContext)
        {
            if (filterContext.HttpContext.User.Identity.IsAuthenticated)
                return; // all good
    
            RedirectTo(IsSSO() ? GetADFSUrl() : GetSignInUrl();
        }
    }
    

    To decide whether the user is an SSO user or not when they are unauthenticated is the Home Realm Discovery problem. Different people solve it differently. For us, when an SSO user first connects to the system using SSO we lay down a persistent cookie with their home realm (which is the Claims Provider Identifier in ADFS). If the cookie is absent, they go to Sign In. If the cookie is present, they get redirected to ADFS. The URL is:

    var adfsEntryPoint = FederatedAuthentication.WSFederationAuthenticationModule.Issuer;
    var wtRealm = FederatedAuthentication.WSFederationAuthenticationModule.Realm;
    var whr = <from home realm cookie>
    var redirectUrl = string.Format("{0}?wa=wsignin1.0&wtrealm={1}&whr={2}",
        adfsEntryPoint,
    HttpContext.Server.UrlEncode(wtRealm),
    HttpContext.Server.UrlEncode(whr));
    

    If you redirect directly to N federated partners, maybe store the token renewal URL in the cookie.

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

Sidebar

Related Questions

I have successfully been using the eclipse Indigo internal browser to view my web
I am using apache-nutch-1.4 with apache-solr-3.2.0 I have successfully integrated NUTCH with SOLR when
I have integrated the Facebook-sdk successfully in to my appplication. Now i am going
i have successfully integrated Google earth with Flex using ExternalInterface.call(javascriptMethodName) method and writing the
I have successfully created a feature in sharepoint that modifies the existing edit dialog
I have successfully integrated the Silent Post feature with our system for ARB subscriptions.
I have successfully integrated the three20 framework in my project, and I have extended
Thank you for looking at my question. I have successfully integrated jCarousel with the
So we have Redmine successfully integrated with SVN. It's a mature integration (a few
I have a panel in my master page that has textboxes for users login.

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.