Giter Club home page Giter Club logo

lara-auth-bridge's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

lara-auth-bridge's Issues

Cant connect laravel with phpbb

im already try install using instruction

my laravel website using username to login , im already login in my laravel web, when open phpbb its not login

laravel5_2
laravel5_3

October cms

so it can be used with octobercms?
and if so can you give a small example how.
thank you.

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 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

Does not work with Laravel 5.2?

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

Can't seem to login, no errors are returned.

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
}

CSRF Token mismatch

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?

Will there be a version for phpBB 3.2 ?

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.

Not compatible to laravel 5.2?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.