Override ASP.NET forms authentication for a single page

前端 未结 3 2072
长情又很酷
长情又很酷 2021-02-10 00:16

In our ASP.NET MVC application, we automatically redirect users to a log-on page via the section of when they

3条回答
  •  故里飘歌
    2021-02-10 00:55

    You can have separate sections for separate paths. Here's an example:

    
      
        
          
            
            
          
        
      
    
    

    In this case, the page "Foo/Bar.aspx" is allowed to folks with the GoodGuys role, but denied to all others.

    In your case, you might want to allow all without authentication:

    
      
        
          
          
            
          
        
      
    
    

提交回复
热议问题