Package Data | |
---|---|
Maintainer Username: | CallMeNP |
Maintainer Contact: | np.liamg@gmail.com (CallMeNP) |
Package Create Date: | 2015-06-18 |
Package Last Update: | 2021-02-04 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:01:10 |
Package Statistics | |
---|---|
Total Downloads: | 1,111 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 16 |
Total Watchers: | 7 |
Total Forks: | 8 |
Total Open Issues: | 5 |
For Laravel 4.* see r-a-stone's work Auth driver to create/authenticate accounts.
composer require callmenp/lara-auth-bridge
Register the Service Provider by adding it to your project's providers array in app.php
'providers' => array(
'CallMeNP\LaraAuthBridge\LaraAuthBridgeServiceProvider',
);
Change configs config/lara-auth-bridge.php
// Create a secret app key in
'appkey' => 'yoursecretapikey'
// Update the column names used for the Laravel Auth driver
'username_column' => 'user_login',
'password_column' => 'user_password'
// Set true if you use multiAuth, false if default Laravel Auth
'client_auth' => false
In file app/Http/Middleware/VerifyCsrfToken.php add
protected $except = [
'auth-bridge/*',
];
More info how to exclude uris on laravel site
Copy all files in the phpBB 3.1 directory to your phpBB install
Edit the file located at {PHPBB-ROOT}/ext/laravel/bridgebb/auth/provider/bridgebb.php
define('LARAVEL_URL', 'http://www.example.com'); //your laravel application's url
define('BRIDGEBB_API_KEY', "yoursecretapikey"); //the same key you created earlier
define ('LARAVEL_CUSTOM_USER_DATA', serialize ([
'email' => 'user_email',
'dob' => 'user_birthday',
])); // Update the columns you want to come from Laravel user to phpBB user
Login to the phpBB admin panel enable bridgebb extension and after set bridgebb as the authentication module