CallMeNP / lara-auth-bridge

[Unmaintained] Offers a simple API for the included custom phpBB authentication module. for phpBB(3.0,3.1) and laravel5
MIT License
16 stars 8 forks source link

Not compatible to laravel 5.2? #11

Open ithr0n opened 8 years ago

ithr0n commented 8 years ago

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.

Bukashk0zzz commented 8 years ago

How I understand no body needed this package anymore. If you need it send pull request with fixes. I will merge and create new tag.

ithr0n commented 8 years ago

Got it working by manual installation of the files.

Unfortunately, the authentication is not working correctly. When I login to phpBB with a laravel user/password, the validation works (ApiController::_validateCredentials), but the validation of the session does not (ApiController::getSession). Auth::check() returns always false, even when Auth::attempt() returned true before.

Is this extension meant to work with php sessions or do I need to use Token based authentication or something like that?

When I get everything working I will send pull requests.

Bukashk0zzz commented 8 years ago

Extension works with php session. Forum and laravel app must be on same domain because of that.

I think if there are problem, it some where near this line https://github.com/CallMeNP/lara-auth-bridge/blob/master/phpbb3.1/ext/laravel/bridgebb/auth/provider/bridgebb.php#L17

carpusmedia commented 7 years ago

Seems like we found a possible solution for this at #13. Simply wrap the route declarations in a web middleware, and it should work.