c# - Implement Single Signon in Windows without Azure -
i working in c# on web application requires login username , password. application made compatible windows , being written in vs 2013. in company's network, computers require user credentials, , in cases user's credentials app same windows logon credentials. therefore trying implement system where, instead of signing onto windows , entering same credentials again in app, app can access windows credentials given current user , attempt sign in automatically those. know there way using active directory azure, time being trying avoid using azure. have tried using windowsidentity.getcurrent()
, environment.username
far, both of supply username, not password, , need full credentials. wouldn't shock me if cannot done in way security purposes, if there way incredibly helpful. know of way access current user's credentials? thanks
you don't need azure accomplish this. application pool needs have windows authentication enabled. not have access password, however.
after that, need write httphandler
httpcontext.current.user.identity
value , check against database or collection of authorized users. don't need "re-authenticate".
Comments
Post a Comment