callmenp / lara-auth-bridge Goto Github PK
View Code? Open in Web Editor NEW[Unmaintained] Offers a simple API for the included custom phpBB authentication module. for phpBB(3.0,3.1) and laravel5
License: MIT License
[Unmaintained] Offers a simple API for the included custom phpBB authentication module. for phpBB(3.0,3.1) and laravel5
License: MIT License
can i use this for phpbb 3.1 ?
so it can be used with octobercms?
and if so can you give a small example how.
thank you.
i got this, after first login using Dotabattle (uppercase D)
everytime i want logout from phpbb i got this error
You were not logged out, as the request did not match your session. Please contact the board administrator if you continue to experience problems.
i think its case sensitive
i fix this with change phpbb user tabble username
coulumn and lowered that in database
Hello,
We are not able to get lara-auth-bridge to work properly. We are using Laravel 5.2.
When we try to log in to the forum, we get this error message:
You have specified an incorrect username. Please check your username and try again. If you continue to have problems please contact the Board Administrator.
No errors are created in the Laravel logs.
We've followed the instructions in the Readme, this is the setup:
laravel/config/app.php
<?php
return [
...
'providers' => [
...
'CallMeNP\LaraAuthBridge\LaraAuthBridgeServiceProvider'
...
]
]
laravel/config/lara-auth-bridge.php
<?php
return [
'appkey' => 'testkey',
'user_model' => [
'username_column' => 'email',
'password_column' => 'password',
],
'client_auth' => false,
];
laravel/app/Http/Middleware/VerifyCsfrToken.php
<?php
namespace App\Http\Middleware;
...
class VerifyCsrfToken extends BaseVerifier {
...
protected $except = [
'auth-bridge/*',
]
];
phpbb/ext/laravel/bridgebb/auth/provider/bridgebb.php
<?php
namespace {
...
define('LARAVEL_URL', 'http://app.domain.com');
define('BRIDGEBB_API_KEY', 'testkey');
define ('LARAVEL_CUSTOM_USER_DATA', serialize ([
'email' => 'user_email',
]));
...
The forum is hosted on a subdomain as well (http://forum.domain.com)
PHPBB: 3.1.10
Laravel: 5.2
lara-auth-bridge: 2.1.0
laravel/bridgebb: 2.0.0
Hi does this package work with Laravel 5.1?
When I try to log in it doesn't seem to be creating a new cookie here. The $matches array is always empty even though it is finding the user in the database.
function curlResponseHeaderCallback($ch, $headerLine) {
preg_match_all('/^Set-Cookie:\s*([^;]*)/mi', $headerLine, $matches);
foreach($matches[1] as $item) {
parse_str($item, $cookie);
setcookie(key($cookie), $cookie[key($cookie)], time() + 86400, "/");
}
return strlen($headerLine); // Needed by curl
}
Hey there, good work! Unfortunately on L5.1 when you the phpBB extension tries to POST the laravel website, it return CSRF token mismatch. The reason is the middlewere -\App\Http\Middleware\VerifyCsrfToken::class which is applied on every request. So that's why it won't work, unless the middleware is commented out of the app/Http/Kernel.php or if you modify the VerifyCsrfToken.php file.
Can you please confirm that this is the reason and may be add this to the readme?
I tested it out already on phpBB 3.2, but since the plugin is using $_COOKIE, it will give a error.
Hopefully this will be released some time in the future.
When using composer to install this package, the required files are not copied to the application.
Also the post-cmd vendor:publish command is not executed correctly.
Hi,
is the bridge useless when Forum runs on something like forum.whatever.com and website on www.whatever.com ?
Seems the link could not be made if the subdomain is not the same.
Anybody could enlighten me on that ?
Cheers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.