Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password protecting viewing of pages (not just editing access) #31

Open
rafic20 opened this issue May 18, 2024 · 0 comments
Open

Password protecting viewing of pages (not just editing access) #31

rafic20 opened this issue May 18, 2024 · 0 comments

Comments

@rafic20
Copy link

rafic20 commented May 18, 2024

Hi,

Using user-config-inc.php, I can set the login username and password for accessing editing mode in Hotglue (i.e. pages with the url structure /hotglue/my_page_name/?edit.

I would like to password protect the viewing of Hotglue pages as well. So if your browser requests /hotglue/my_page_name/, I'd want to display a login dialog. I was not able to get this to work using an .htpasswd file that is referenced in .htaccess, with both files located in the Hotglue folder.

The Apache logs give me a "wrong password" error. I'm wondering if the .htpasswd info is conflicting with the login credentials set in user-config-inc.php.

.htaccess

AuthUserFile /app/data/public/hotglue/.htpasswd
AuthName "Authorization Form Title"
AuthType Basic
require valid-user

.htpasswd
(generated with OpenSSL, sample below)

user:<my_password>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant