ASP.NET MVC - CustomeAuthorize filter action using an external website for loggin in the user

前端 未结 3 1662
轮回少年
轮回少年 2020-12-16 05:36

I have a CustomeAuthorize action filter that forwards the user to signin page if user is not authenticated. I apply this filter to actions or controllers.

[         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-16 06:11

    Let me see if I understand - you have an iFrame, and executing an action within this iFrame. You want to redirect to a parent page, not within that iFrame?

    If so, just use Redirect(url) in your action.

提交回复
热议问题