TeamJobinja / Laravel-Djangoable-Auth by jobinja

An authentication driver for Laravel5 which allows to authenticate users using their legacy Django PBKDF2
3,199
9
3
Package Data
Maintainer Username: jobinja
Maintainer Contact: reza@jobinja.ir (Reza Shadman)
Package Create Date: 2015-11-25
Package Last Update: 2016-03-13
Language: PHP
License: GPLv3.0
Last Refreshed: 2024-12-11 15:15:06
Package Statistics
Total Downloads: 3,199
Monthly Downloads: 64
Daily Downloads: 0
Total Stars: 9
Total Watchers: 3
Total Forks: 6
Total Open Issues: 0

Laravel Django Authentication

An authentication driver for Laravel5 which allows to authenticate users using their legacy Django PBKDF2 passwords.

Usage

Add the following service provider to the providers section of config/app.php :

Jobinja\Djangoable\DjangoableServiceProvider::class

Then change your auth driver to djangoable in config/auth.php.

If you prefer to use database driver instead of eloquent use djangoable_database instead of djangoable .

Refreshing passwords on first login

By default after the first login of the user using a password, user's password is rehashed based on your laravel hasher contract. If you don't wat this you can disable it by setting rehash_django to false in config/auth.php :

// auth.php
//...
'rehash_django' => false,
//...

Password field size

Default Laravel5 migration for users table uses VARCHAR(60) for password field you should increment it to 100 as Django password fields take more space.

Tests for hasher contract

Clone the project then run vendor/bin/phpunit.