alex-kalanis/kw_auth_sources

Authentication sources for KWCMS

v5.0.0 2024-04-07 19:28 UTC

This package is auto-updated.

Last update: 2024-04-07 19:38:15 UTC


README

Build Status Scrutinizer Code Quality Latest Stable Version Minimum PHP Version Downloads License Code Coverage

Authentication to site - where the data with accounts are stored and how to work with them.

These libraries represent internal getters and setters to access accounts on target site. Just configure where to find them and it's possible to process all basic yet necessary things. It's based on real *nix files and structures.

There are three parts. First one is usual accounts itself. Second one is groups - limit access to things in accordance with preset groups on accounts. And third one is system classes. That limits access too, but it is written directly into the code of each part and it is not need to rely on group ids and if they exists. So groups limits interactions between users and system classes between user and system.

It has variants and interfaces for possibility to use single account file, multiple account files, certificates with passwords and groups. The account files can be switched to different implementations. Or database can be used as data source for both accounts and groups. And either example one on kw_mapper or your own implementation.

Your system probably do not need the same things as mine. So some things can be ignored and another can be available under "extra".

PHP Installation

composer.phar require alex-kalanis/kw_auth_sources

(Refer to Composer Documentation if you are not familiar with composer)

PHP Usage

1.) Use your autoloader (if not already done via Composer autoloader)

2.) Add some external packages with connection to the local or remote services.

3.) Connect the "kalanis\kw_auth_sources" into your app. Extends it for setting your case. For details use example.

4.) Just call \kalanis\kw_auth_sources\Access\Factory in your code

Caveats

It's build for standalone usage - nothing more need than basics and dependencies.