Log in with network user

Asked

Viewed 1,034 times

3

When opening the page I am building, the user who is logged in by the network, he or she will login to the page with this user, but without having to open a page for this, that is, my system will have to catch the guy in the network and give access to him or her portal/system. I use:

VS2013 - MVC5 - Bootstrap - C# - SQL Server 2012

2 answers

7

Configure your file Web.config with the following:

<system.web>
    ...
    <authentication mode="Windows"/>
    ...
</system.web>

The user can be obtained using:

HttpContext.Current.User.Identity.Name

Or simply:

User.Identity.Name

See more here: http://msdn.microsoft.com/en-us/library/ms998358.aspx

6

Dude, if authentication is rolling with an Active Directory, VS Studio assists you, take a look at this tutorial to create a Single Sign On using Identity with Entity Framework.

Active Directory is a directory service implementation in the LDAP protocol that stores information about networked computer objects and makes this information available to users and administrators of this network. (Source: Wikipedia)

Example Here: Windows Azure Active Directory

With this path of stones I developed a web app with authentication with the server where I work.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.