这是我期望认证流程的方式:
- Attempt to pull in the user s name from windows authentication
- If that failed (user is external to network), use BASIC authentication to get the username/password.
- Check the username/password against the SQL database. If windows, password isn t required, if BASIC authentication and password is incorrect, prompt again
- Create the Identity object with the user name, and populate the user s roles via another SQL database call
这需要用于多个应用程序。
最佳实施方法是什么?创建HTTP模块吗?如果是这样,我需要牢记什么(安全性,虚拟目录设置等)。