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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:16:38+00:00 2026-06-10T10:16:38+00:00

I sort of want to be able to do mixed windows and forms authentication.

  • 0

I sort of want to be able to do mixed windows and forms authentication.

//I want to check the browser the user is using
If(IE || chome)//I know IE and chrome can authenticate without a popup login box
{
    //check windows authentication
    if(generic AD account || AD user doesn't have permissions for this application)
    {
        //Redirect to login page
    }
    else
    {
        //Redirect to main page
    }
}
elsif(IPad || android || Firefox)
{
    //Redirect to login page
}

Is there a way to create some custom code to get windows AD authentication with javascript or can I create a custom ashx page to check authentication?

  • 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-10T10:16:39+00:00Added an answer on June 10, 2026 at 10:16 am

    I didn’t find any ways to do this just in the code. I ended up following this method
    http://msdn.microsoft.com/en-us/library/ms972958.aspx
    and slightly modifying it. It makes some changes in the settings in IIS through the grphical interface. I also didn’t want forms authentication and so I changed it to None for authentication and I put some code in my master page to check a cookie and redirect to a page that can check the browser type with javascript and then redirect to the autologin or login page. I don’t like that this method means I have to manualy make changes in IIS because this will add alot of time to setting up the web site when it has to be added on new servers, but this is the only way I could find.

    This so far has let me do everything I have ever wanted to be able to do but couldn’t with the normal authentication methods (add session count down timer, check session variables from service, combin active directory and custom authentication, notify user if they login from multiple locations) but it has taken a lot more coding and testing to get it working than I thought it would. And I will still be doing a lot more testing before I am happy that it will work correctly once real users start to use it. So if anyone has any suggestions for another way this could be done I would still be interestead in what other ways this could be done.

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

Sidebar

Related Questions

I want to be able to achieve the following using guice/gin: Get all sort
How can i do this? (c#) Basically, i want to be able to sort
I want to be able to sort files based on what day they were
I have main categories and sub categories. I want to be able to sort
I want to sort list items by their priority, which the user types in,
I want to sort ListView items by the content of second column (which can
I want to be able to create an alphabet pagination of some sort, where
I want to be able to interact with an SQL database using LINQ and
I'm using nested routes and I want to provide some sort of a shortcut
I have a list of divs that I want to be able to sort.

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.