PHPackages                             samwilson/kohana\_dbauth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. samwilson/kohana\_dbauth

AbandonedKohana-module[Authentication &amp; Authorization](/categories/authentication)

samwilson/kohana\_dbauth
========================

A driver for the Kohana Auth module, to authenticate as a database user.

1.0.0(11y ago)2341MITPHP

Since Jun 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/samwilson/kohana_dbauth)[ Packagist](https://packagist.org/packages/samwilson/kohana_dbauth)[ RSS](/packages/samwilson-kohana-dbauth/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (3)Used By (1)

DBAuth: Kohana Auth driver for Database authentication
======================================================

[](#dbauth-kohana-auth-driver-for-database-authentication)

Database-user Auth driver, used to authenticate as a user of the DBMS (rather than a user whose credentials are stored in the database).

Usage
-----

[](#usage)

To use, simply:

- set `'driver' => 'db'` in the `APPPATH/config/auth.php` config file,
- do not set the username or password in the`APPPATH/config/database.php`config file,
- and make sure a valid database name is given in that latter file.

For example, a minimal `APPPATH/config/auth.php` looks like this:

```
