asp.net mvc Adding to the AUTHORIZE attribute

后端 未结 4 1022
面向向阳花
面向向阳花 2020-11-30 01:43

How do I create a custom attribute to extend existing Authorize attribute in MVC?

4条回答
  •  广开言路
    2020-11-30 01:57

    You do not need to extend this attribute, web.config is enough. Please read about forms Element for authentication. Pay your attention on defaultUrl. This is something what you need.

    
      
        
      
    
    

提交回复
热议问题