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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:10:09+00:00 2026-06-11T23:10:09+00:00

Background Our asp.net webapp has grown and now has 6 different methods of authentication,

  • 0

Background

Our asp.net webapp has grown and now has 6 different methods of authentication, with more on the horizon. I want to standardize these methods and extract each into an independent plugin which can be disabled/enabled at will (and possibly even configured from within the app). That’s also necessary because at least one of the methods is client-specific and uses a DLL supplied by said client, which should not be distributed to other clients.

Problem

As I’m trying to create a plugin mechanism for authentication methods, I’m faced with a particular method which is Windows Authentication. Normally it works by enabling Windows Authentication in IIS, but since it should be an independent plugin I’d like to avoid it modifying web.config and/or IIS config. So, assuming that Windows Authentication is turned off by default in IIS (only anonymous for everything), is there any way I can get my plugin to work? Can I somehow tell IIS from within my ASP.NET application that I’d like to get Windows authentication on a particular URL/request?

  • 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-11T23:10:11+00:00Added an answer on June 11, 2026 at 11:10 pm

    Using advapi32 you should be able to get the details without having to use Windows Authentication.

    Have a look at it here:

    http://www.pinvoke.net/default.aspx/advapi32.logonuser

    Other than that, there is no alternative to user Windows Integrated Auth to get further user details

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

Sidebar

Related Questions

Background: I work in a suite of ASP.NET applications that have several different modules.
Background Information Our application reads/writes from 3 components: ASP.NET MVC 3 customer front end
Background I have an ASP.NET site, hosted internally on our company's intranet server. The
Background: I am working on an ASP.NET MVC app that has 3 partials (based
We've implemented a background service in our Asp.Net web app that receives messages from
I want to change the background color of our apps main window when a
We are writing unit tests for our ASP.NET application that run against a test
Some Background: ASP.net MVC is primarly a paradigm shift in the way you structure
Background WCF Stack, Data Access Implemented in Entity Framework, Simple ASP.NET Front End This
We have an ASP.NET 3.5 application that has been in production for over a

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.