tags:

views:

86

answers:

4

I'm just strating a new project in MVC and I need to have a backend that has restricted access.

I was going to set up a group in Active Directory for users who have access rights and use the Authorize atribute on the backend controller to restrict access. I will also enable Windows authentication.

I was just wondering if that would be secure enough for an external facing website for a small to Medium site?

Thanks

Jemes

A: 

I see no reason why not using the built in providers.

Not sure what else to say :)

Pino
Thanks for your reply.What do you mean by built in providers?
Jemes
Sorry for delay, Like you've said in your post. Authorize tag, Membership and Role Providers.
Pino
A: 

It should be ok, but but do remember MVC supports RESTful url's do go through this link

http://www.infoq.com/articles/roa-resource-metadata to avoid pages not being accessed by other user's as getting uri is easier in REST.

Ravia
A: 

I know this is pointing out the obvious but depending on the sensitivity of the data you might want to look at running the protected parts of your site under SSL?

Additionally depending on your specific needs you might want to look at using IIS to lock down the folder(s) to a set IP address range?

Kane
The backend is only being used to add/update certain content on the site. I'm not sure about locking down to IP Address as users will need to be able to update the site from different machines and locations.What would be the benifits of using SSL?
Jemes
SSL is a common cryptographic protocol which provides security for web applications. http://en.wikipedia.org/wiki/Transport_Layer_Security
Kane
A: 

I assuming that if I did follow the security steps above, a user could still access my views in the backend if they guess the url. Does the Authorize atribute work on Views?

Jemes
Please edit your own question rather than post an answer to it. Thanks!
Dan Atkinson
[Authorize] doesn't work on views, but there's a ~\Views\Web.config file that prevents *all* direct access to the Views\ folder and its subdirectories. This file is included in the MVC project template.
Levi