Multiple choice technology programming languages

In ASP.NET if one uses windows authentication the current request attaches an object called as

  1. Serialization

  2. WindowsPrincipal

  3. WindowsDataset

  4. None of above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

When Windows authentication is enabled in ASP.NET, the current request gets a WindowsPrincipal object attached to it via HttpContext.User. This object represents the Windows security context and identity of the user making the request. Option C is incorrect - WindowsDataset is not a security object, and serialization is unrelated to authentication.

AI explanation

When Windows Authentication is enabled in ASP.NET, the framework attaches a WindowsPrincipal object (wrapping a WindowsIdentity) to the current request/thread, representing the authenticated Windows user and their group memberships, which the application can then use for authorization checks. This is distinct from serialization or dataset-related objects, which serve unrelated purposes.