简体   繁体   中英

WINDOWS authentication in siingle sign on

I have a website that was hosted by IIS to intranet. I want access the username of the each user who is accessing the website in intranet by using single sign on method. How can I achieve it?

I am using asp.net and c# languages in my website.

Use HttpContext.Current.User.Identity. You can cast Identity as WindowsIdentity to retrieve some more user information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM