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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:06:22+00:00 2026-05-25T23:06:22+00:00

The application is already using Windows integrated security, not Forms. What I am trying

  • 0

The application is already using Windows integrated security, not Forms. What I am trying to accomplish is a so called “step-up” authentication, or “force re-authentication” for the following scenario:

  1. the user is browsing the site doing common, trivial stuff
  2. suddenly, the user has to do a sensitive action such as authorizing
    a resource allocation or confirming a car loan or something similar
  3. the user is prompted for the credential before (s)he’s redirected to
    the sensitive page, in a manner similar to SharePoint’s “Sign In as
    a Different User”
  4. if, and only if, the credentials entered are
    the same as for the currently logged-in user the application
    proceeds to the sensitive area.

This would prevent the following two issues:

  1. The user goes for a meeting or a coffee and forgets to lock the
    workstation and a colleague uses the session to access the sensitive
    area
  2. The user enters the credentials of his or her boss (because, let’s
    say he peeked over the boss’ shoulder) to access the sensitive area.

I know, some would look at this as “being paranoid”, but also some would say it’s common sense and should be build in a framework somewhere (jQuery or .NET)

  • 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-25T23:06:23+00:00Added an answer on May 25, 2026 at 11:06 pm

    Have the form send the credentials along with the request to perform the action, i.e., some actions require that you provide username/password. Use the PrincipalContext ValidateCredentials method to ensure that the proper credentials have been entered and check that the username supplied matches the current username in the User.Identity object.

    public ActionResult SensitiveAction( SensitiveModel model, string username, string password )
    {
        using (var context = new PrincipalContext(ContextType.Domain))
        {
             if (!string.Equals(this.User.Identity.Name,username,StringComparison.OrdinalIgnoreCase)
                 || !context.ValidateCredentials(username,password))
             {
                  return View("PermissionDenied");
             }
        }
    
        ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have forms authentication already built in my web application. Can I have Windows
I have a Windows Forms application developed using C# in .NET framework 3.5, Service
I have developed a small desktop application in c#(using windows forms). For this project
I am already using output caching in my ASP.NET MVC application. Page speed tells
I'm using symfony for one of my projects. The application has already developed and
I'm using JS-SDK and my users already authorized with my facebook application. now my
I have an application that's using Oracle.DataAccess to connect. I've already discovered that the
I am currently developing an android application using eclipse and I already have a
I'm trying to control windows of a foreign OSX applications from my application. I'd
I am using c# windows application. when my application is started up, i want

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.