Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

umbraco authentication

I have an existing community backend and I like to use Umbraco for my presentation layer. How can I implement login/logout with .Net forms authentication? (I don't want to use the Member functionality). I have different type of users that get's access to different type of pages. How can I control this? User control?

like image 434
Niels Bosma Avatar asked Sep 28 '09 21:09

Niels Bosma


People also ask

Is umbraco secure?

Umbraco is Secure It comes with checks and balances in place to ensure malicious code doesn't make its way in. The proof is in the frequency of CMS security updates that are produced. Wordpress security updates for the core application are usually every couple of months.

How do I log into my Umbraco website?

Open your web browser and enter your website domain name followed by /umbraco (for example: http://www.company.com/umbraco/). A login screen appears. Enter your Email and Password provided by your system administrator. Click Login.

What is Umbraco back office?

A section in Umbraco is where you do specific tasks related to that section. For example Content, Settings and Users. You can navigate between the different sections of the backoffice by clicking the corresponding icon in the section menu. The Section menu is the horizontal menu located on the top of the backoffice.

When was umbraco 9 released?

Starting with the release of Umbraco 9 (September 28th, 2021), we will be releasing a new major two times per year.


1 Answers

Umbraco uses the ASP.NET member / role provider model for it's membership system, and it's a pretty straightforward step to swap the default one out for your own implementation. I've done this in the past where I wanted to authenticate members against an Active Directory store but I can't imagine it being much more difficult to authenticate against a custom database.

The benefit from this is you get full integration with the Umbraco membership system, and by using a custom role provider, editors will be able to restrict pages using the built in page-editing facilities as opposed to you having to hook in your own security controls.

You should be able to create a simple membership provider by extending the UmbracoMembershipProvider class and overriding the ValidateUser method. I haven't done this myself, but I know of others who have.

To authenticate against a custom role provider, you'll need to create a class derived from RoleProvider. The methods you'll be interested in overriding are - IsUserInRole, FindUsersInRole, GetAllRoles and GetRolesForUser.

Here's a link to a Scott Guthrie blog post which has more information on the provider API than you'll ever need to know, including the source code for the default providers.

like image 60
richeym Avatar answered Oct 20 '22 19:10

richeym