thecogworks / Cogworks.SiteLock

A security package for Umbraco 7. Lock down an Umbraco website from viewers. Only users who are logged into the backoffice can see the public website.
MIT License
10 stars 5 forks source link

Feature: Enable access for members #4

Open ed-parry opened 6 years ago

ed-parry commented 6 years ago

Firstly, great package! Proving to be very useful at the moment, but I have a possible feature request if you think it fits with the package concept.

I have a site that I need to lock down and while the Umbraco login works nicely, there are a couple of external testers that don't have Umbraco credentials and they don't really need them. In this case, it'd be great to show a login screen on which the member credentials could work? I know that functionality exists within Umbraco but if the package was able to display a login window hooked up to members it could be a complete solution in one package?

Interested in what you think - happy to try and look at a possible solution if you think it fits with the concept.

AnthonyCogworks commented 6 years ago

Hi Ed

Thanks for your input.

Members in Umbraco are used for public users, where as Umbraco Users is that they have backoffice access.

Having public users able to see a locked down staging site doesnt make sense to me. I guess what you're asking for is some type of privilege which is in between a public Member and a backoffice Umbraco User. However, IMO you can achieve what you want by using the Umbraco User section.

You can create a user which only has access to the content section, while also hiding/denying access to the content tree. That way they can log in, and also have access to the locked site.

I hope that helps.

ed-parry commented 6 years ago

Hi @AnthonyCogworks. Agreed, it's a strange request that we hadn't come across before either, but I'm not sure creating an Umbraco user that lets someone log in, see a blank screen and then have to go to another URL is great UX. The scenario I'm working with is effectively letting a board of directors see a finished site before go-live. The site editors are using Sitelock and it's great, but ultimately a non-tech-savvy director doesn't want to do anything more than they have to, especially having to log into a blank CMS.

I guess it's more niche than I originally thought though, so likely doesn't make sense in a plugin. I'll have a play and see what I can come up with and keep you posted if something comes up/works that could end up fitting in nicely.

AnthonyCogworks commented 6 years ago

I'd give them a full editor account then. If you wanted to deny access to node saving then you can. So they can see but not save.

In our experience, if it's a CEO or director I'd personally sell it to them like this:

"As you can see, this pre-prod/staging site is locked down to editors, so that's why you have an editor account for viewing the site. Don't worry, as your account isn't allowed to save anything".

mzajkowski commented 6 years ago

I see what @ed-parry wants to achieve. It's something like basic authentication, but on the package level. I like this idea / option. Sometimes those CEOs or Directors are non-technical at all and they will loose their minds even within Umbraco, so the easy auth on the frontend might work for them in this case. Correct me if I'm wrong, but if the credentials will live within the package config, we don't need memebership / identity setup?

callumbwhyte commented 6 years ago

There are some deeper considerations that need to be made when it comes to implementing user and member based auth for Sitelock.

Maybe as a first step we could find a way to allow backoffice users to authenticate via basic auth style popups in the browser - perhaps this could be enabled by a config setting. This would be a significantly better UX for the login process for those unaware of Umbraco.