How to fallback authentication from ADFS to form-based

孤人 提交于 2019-12-11 20:32:58

问题


We have an ASP.NET application using Forms authentication (ASP.NET Membership). Now we would want to make it to be claim-aware ASP.NET application in below scenario:

  1. ADFS acts as an IP-STS for intranet (AD) users
  2. If AD User is not mapped to ASP.NET Membership User or mapped ASP.NET Membership User does not have permission to access application --> Fallbacks to form authentication (an external IP-STS)
  3. If end-user accesses the application from outside the domain, we don't want ADFS to prompt for Windows Credentials. We would like redirect end-user to out external IP-STS using form authentication.

Is this scenario achievable? Or is there any other possible solution? And how should I setup/configure my application?

Thanks


回答1:


The classic solution to this problem is to have two ADFS with a split DNS.

Internal users redirect to an ADFS in the Intranet configured for WIA.

External users redirect to an ADFS in the DMZ configured for FBA.

For your second point, not clear if internal or external user.

If external (i.e. FBA) then you can modify the Forms login page, access AD yourself and redirect appropriately.



来源:https://stackoverflow.com/questions/15083871/how-to-fallback-authentication-from-adfs-to-form-based

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!