Download the PHP package outermedia/pdo-authenticator without Composer
On this page you can find all versions of the php package outermedia/pdo-authenticator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download outermedia/pdo-authenticator
More information about outermedia/pdo-authenticator
Files in outermedia/pdo-authenticator
Package pdo-authenticator
Short Description Generic PDO-Authentication
License MIT
Homepage http://www.outermedia.de
Informations about the package pdo-authenticator
pdo-authenticator
General php authenticator based on PDO to check logins.
Installation
At first install or download composer.phar to your computer. Follow the instructions provided by getcomposer.org.
Step 1: Download the project
Create an intermediate directory, cd into it and download the latest distribution without tests:
This creates files in your current working directory:
Hint: If you want to run the phpunit tests, additionally run (creates new directoy pdo-authenticator/):
Note: The dbunit tests require sqlite3.
Step 2: Deploy the files
Now copy the files to your destination directory ($DEST)
Step 3: Rename the database settings template
Rename the file dbconf.php.template:
Step 4: Set your database options
Edit dbconf.php.
Options are:
- pdoUrl - a PDO connection URL e.g. for a local mysql and a database dbname1 "mysql:host=localhost;dbname=dbname1"
- dbUser - the username used for the database connection
- dbPassword - the password used for the database connection
- table - the database table name which holds the user information
- usernameColumn - the column name which stores the username (of table)
- passwordColumn - the column name which stores a user's password (of table)
Step 5: Test you installation
Two POST actions are supported:
a) Get a user's salt ("user1"): Encode your form parameters with the specified charset!
should return something like:
The charset used by the database table, the salt and a success flag ("result").
b) Check a user's login: pwd is the calculated hash.
The expected answer is e.g.
The flag "result" indicates the success.