---
title: "Authentication and authorization in asp.net mvc"  
description: "Authentication and authorization in asp.net mvc"  
author: "Anonymous User"  
published: 2011-12-13  
updated: 2011-12-14  
canonical: https://www.mindstick.com/forum/365/authentication-and-authorization-in-asp-dot-net-mvc  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 1 minute  

---

# Authentication and authorization in asp.net mvc

Hi,\
I am making a [program](https://www.mindstick.com/blog/12337/scaling-up-your-mentorship-program) in [ASP.NET MVC](https://www.mindstick.com/forum/155798/what-is-caching-in-asp-dot-net-mvc) where I was facing [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) in [authentication and authorization](https://www.mindstick.com/forum/160406/what-is-a-bearer-token-in-the-context-of-authentication-and-authorization) process. How can I implement it in ASP.NET MVC as I implement it in ASP.NET.\
\
Thanks,

## Replies

### Reply by James Smith

Hey Jenry,\
You can use [Authorize(Roles = "DefaultUser")]attribute to authorize perticular user on controller methods.\
\
For implementing [authentication](https://www.mindstick.com/blog/177/authentication-and-authorization-in-asp-dot-net) you can take a look of this sample application\
http://www.mindstick.com/Beginner/F769698F-FED6-43EB-8E61-D7BAAF713819/[MVC](https://www.mindstick.com/forum/155803/define-cache-profile-in-mvc)/Login%20and%20Registration%20Form%20in%20ASP%20Net%20MVC/

Thanks


---

Original Source: https://www.mindstick.com/forum/365/authentication-and-authorization-in-asp-dot-net-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
