Windows Authentication

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

I have never used windows authentication for an web application, but now it
seems I might have the opportunity to do so.

I am wondering how to retrieve the UserID of the person accessing my web
page.

If you know of any examples of how to set up the web.config file and if
there is any coding involved in athenticating (don't thing there is any
code... all done within the system).

Thanks in advance for your assistance!!!!!!!!!!!!!!!!
 
I have never used windows authentication for an web application, but
now it seems I might have the opportunity to do so.

I am wondering how to retrieve the UserID of the person accessing my
web page.

If you know of any examples of how to set up the web.config file and if
there is any coding involved in athenticating (don't thing there is any
code... all done within the system).

Thanks in advance for your assistance!!!!!!!!!!!!!!!!

Hi,

You need to configure IIS for not allow anonymous access, uncheck it an
check windows authetication in virtual directory properties.

After this, from you asp.net app, you could get user information for example
by using "context.user.identity.name", or getting "auth_user" from server
variables...

Regards
Julian
 
Back
Top