c# - Custom Authentication - User Account Impersonation Best Practice? -



c# - Custom Authentication - User Account Impersonation Best Practice? -

i have custom authentication mechanism in .net app stores hashes of user passwords , tests entered passwords against hash grant authentication ticket.

with passwords beingness hashed, don't know users passwords.

for debugging etc, need able impersonate users , log in account, need scheme of getting around fact don't have password.

one alternative have considered secondary test on authentication failure against master password, though consider little weak since if master password compromised, accounts accessible if email address known.

does 1 have solution issue?

this admittedly indirect response, building functionality enable application circumvent authentication process risky approach. i'd @ actual processes you're attempting debug, particular accounts helps test focus on working out problem. perhaps you'll solve via more robust unit testing, perhaps need test accounts in same roles replicate behaviour. either way, i'd avoid deliberately breaking own authentication scheme!

btw, when "stores hashes of user passwords" there's cryptographically random salt in there well.

c# .net security passwords

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -