Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can the browser know the current AD user ASP.NET

Is it possible for the browser to know the currently logged in AD user without explicitly logging in? I want the code in the server to execute with the same permissions as the user in the browser. Is that possible or do I have to require the user to explicitly log on?

Context: ASP.NET, mostly IE 7, IIS 7.

Thanks.

like image 858
Jessica Boxer Avatar asked Dec 12 '25 19:12

Jessica Boxer


1 Answers

If you...

  • use Integrated Windows Authentication in IIS
  • in web.config where relevant
  • and your users and IIS server are on the same domain

...then it is possible to pass credentials through the browser. IE (being Microsoft's creation) can do this without prompting, other browsers may still insist on users inputting their credentials at the start of a new session.

like image 84
Widor Avatar answered Dec 16 '25 12:12

Widor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!