entry_auth_dir

This is my first EE2 extension. There very well may be more coming in the future as my currnet job position has be building and maintaining websites using ExpressionEngine. The requirements for creating extensions are documented on the EE website, but I had done a lot of searching for examples to make this finally work for me.

Entry Authentication Directory

Overview

This extension is called when entries are submitted. If the entry submitted is in the channel you have in the settings, the extension checks for username, password and directory name fields within the channel. If the submitted password field is empty, the entension generates a random password based on the settings. The directory will be created with .htaccess and .htpasswd files. If an additional file was provided in the settings, the extension will also copy that file to the directory.

If the entry already has the directory structure in place, it will only update the htpasswd file with the new username and password that was submitted and skip the rest of the processing.

Settings

One the extension has been installed and enabled in your EE install, you will be able to access the settings for the extension.

settings screen

Hooks

Current Version Information

The most up-to-date files can be found via the GitHub repository for this project.

Comments, ratings, etc. can be found on the Devot-ee Add-on Page.

packageEntry Authenication Directory
version1.0
authorJustin Koivisto
copyrightCopyright © 2011 Justin Koivisto
licenseLGPL
linkhttp://koivi.com/ee-entry-auth-dir