Scenario:
- https asp/asp.net website running of IIS 7.5 (windows server 2008)
- IIS currently configured to allow anonymous authentication and forms authentication ,asp.net impersonation are disabled while windows authentication is not installed (I understand that windows authentication needs to installed for this.)
- a single custom login page for both internal and external users
Requirment:
- Internal users seamlessly login while capturing their LOGON name (window authentication)
- External users (not on domain) should be prompted a manual login
Questions:
- What approach can be used to implement this?
- Looking for the IIS 7.5 and web.config settings
Approaches Found:
- make 2 pages within 1 website, winlogin and weblogin(front page). Allow windows auth=true and anonymous auth=false on winlogin.aspx and vice versa on weblogin.aspx user with a ip hits weblogin, if ip is known redirect to winlogin to capture logon and redirect to weblogin if the ip is unknown
- have winlogin.aspx as the main page and redirect 401 errors to weblogin.aspx