---
title: "Is it possible to disable authorization on one action in an MVC controller?"  
description: "Is it possible to disable authorization on one action in an MVC controller?"  
author: "Anonymous User"  
published: 2018-03-13  
updated: 2018-03-14  
canonical: https://www.mindstick.com/forum/34431/is-it-possible-to-disable-authorization-on-one-action-in-an-mvc-controller  
category: "c#"  
tags: ["c#", "asp.net mvc", "mvc", "mvc4"]  
reading_time: 1 minute  

---

# Is it possible to disable authorization on one action in an MVC controller?

I want to [disable](https://www.mindstick.com/forum/12901/how-to-disable-enable-input-box-in-aspx-with-value-from-sql) [authorization](https://www.mindstick.com/blog/177/authentication-and-authorization-in-asp-dot-net) in one action. I have added [authorize attribute](https://www.mindstick.com/forum/34466/authorize-attribute-not-working-mvc-5) at the [controller](https://www.mindstick.com/blog/273/passing-values-from-controller-to-view-in-asp-dot-net-mvc) level

```
[Authorize]public class HomeController : Controller{    public ActionResult Register()    {        return View();
    }
    public ActionResult Login()    {        return View();
    }
}
```

thanks in advance..

## Replies

### Reply by Anonymous User

You have to use [AllowAnonymous] [attribute](https://www.mindstick.com/blog/221/attributes-reflection)

```
[Authorize]public class HomeController : Controller{    public ActionResult Register()    {        return View();    }[AllowAnonymous]    public ActionResult Login()    {        return View();    }}
```

\


---

Original Source: https://www.mindstick.com/forum/34431/is-it-possible-to-disable-authorization-on-one-action-in-an-mvc-controller

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
