Jump to content

Subdirectory access with built-in user management


datomtom
 Share

Recommended Posts

Being a newbie in ProcessWire I was wondering, whether I could have simple subdirectories on my webserver (serving specific self-developed php-apps) and use PW's built-in user management, to grant or deny access to those directories for specific users and groups. I was trying to wrap my head around LDAP for this, but it's not too easy to install on virtual servers running Plesk from my experience. So I thought I could possibly use PW's built in mechanisms for this purpose. Any ideas? Thanks in advance to the community!

Link to comment
Share on other sites

1 hour ago, datomtom said:

specific self-developed php-apps

Hi, and welcome to the PW-forum.

Can you tell us more about your PHP apps?

Do you intend to use PW for more than just user-management? Do you plan to rewrite your custom apps with PW?

  • Like 1
Link to comment
Share on other sites

Or you could bootrap your apps in Processwire pages. Any access would go through Processwire then. (For good or ill)

Like: One template and a page for any app, set user access per template. In the template file, bootstrap your app.

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Thanks for your replies, fellow PW developers – that's really great. The bootstrapping of PW and custom logins are good starting points. After a big delay I am back again wrapping my head around this and getting to know PW better. Awesome CMS to say the least.

I think my project is going into a direction where i would host the basic pages (login, logout, dashboard, some DB listings, search masks and forms) within PW. To clarify my question there's for example an existing "/dokuwiki" (www.dokuwiki.org) in a subdirectory of my root on the webserver with a lot of content already functional in place. At the moment this is secured by means of a .htaccess file. Quite possibly the project might incorporate other subdirectories with other on-its-own applications. Now my questions are (sorry, if they are much too "basic" at first sight):

  1. Would it be possible to manage such an existing on-its-own application in an existing subdirectory within PW? By "manage" I mean just basically have it "sitting in there" and link to it from PW (or if not at least "hard coded" inside the HTML template). And also not interfering with PW's URL rewriting for pages.
  2. As for user access permissions would it be possible to manage this within PW as well? First of all the simple case of a user trying to access the /dokuwiki directory. 
  3. Since "dokuwiki" has some user management built in already, I guess the capability of "forwarding the access permissions" from PW to dokuwiki (letting the user just read or also write) is dependent on API interface of dokuwiki, right?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...