Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth账户认证串号问题 #121

Closed
ChenSee opened this issue Feb 23, 2019 · 11 comments
Closed

auth账户认证串号问题 #121

ChenSee opened this issue Feb 23, 2019 · 11 comments
Labels
duplicate This issue or pull request already exists

Comments

@ChenSee
Copy link

ChenSee commented Feb 23, 2019

  1. Tell us your software version
    How to know it?

    Software Version
    PHP 7.2.10
    Swoole 4.2.12
    LaravelS 3.3.10
    Laravel/Lumen 5.7.27
  2. Detail description about this issue(error/log)

    auth账户认证串号问题,多端登陆不同账号后触发串号机制。使用laravel-swoole没有问题。但是大大你的功能完善,实在不想弃用。issue所提到的方法一一尝试过了,无法解决。

  3. Give us a reproducible code block and steps

    # laravels.php
    'register_providers' => [
        /* middleware service providers */
        Dingo\Api\Provider\DingoServiceProvider::class,
        Dingo\Api\Provider\HttpServiceProvider::class,
        /* auth service providers */
        Illuminate\Auth\AuthServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        Tymon\JWTAuth\Providers\LaravelServiceProvider::class,
    ],
    # EventServiceProvider
    /**
     * Register any events for your application.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();
        //
        Event::listen('laravels.received_request', function (\Illuminate\Http\Request $req, $app) {
            Facade::clearResolvedInstance('auth');
        });
    }
@hhxsv5
Copy link
Owner

hhxsv5 commented Feb 24, 2019

能否提供一个可重现问题的精简包?

@ChenSee
Copy link
Author

ChenSee commented Feb 24, 2019

多谢大佬,麻烦了。https://pan.baidu.com/s/1acAKs3CA3Ihll-Yz07h1Cg 密码:1234

@pingcheng
Copy link

基本同样的问题哈,清空了auth类,没有效果,但laravel_swoole可以

@ChenSee
Copy link
Author

ChenSee commented Feb 27, 2019

@hhxsv5 laravel 5.6 可以使用无这个问题,5.7.27有此问题

@hhxsv5
Copy link
Owner

hhxsv5 commented Feb 27, 2019

@ChenSee 不同版本Laravel 存储Auth数据位置不一样,还不好统一处理。

@ChenSee
Copy link
Author

ChenSee commented Feb 27, 2019

@hhxsv5 大佬该如何处理这个问题呢? 现在只能先暂时使用5.6的

@dafa168
Copy link

dafa168 commented Mar 6, 2019

我也刚发现这个问题,登陆一个账号之后,所有浏览器这个账号默认就登陆了。

@dafa168
Copy link

dafa168 commented Mar 6, 2019

我这边laravel 版本是 5.5 LTS

@hhxsv5
Copy link
Owner

hhxsv5 commented Mar 10, 2019

@ALL After a week of debugging, I have passed the test locally for the Laravel/Lumen 5.1-5.8 user authorization. Please try the Master branch code(composer require hhxsv5/laravel-s:dev-master -vvv), if there is no problem, I will release v3.4.0, thanks for your support.

@hhxsv5 hhxsv5 added the duplicate This issue or pull request already exists label Mar 10, 2019
@hhxsv5
Copy link
Owner

hhxsv5 commented Mar 10, 2019

see #109

@hhxsv5
Copy link
Owner

hhxsv5 commented Mar 11, 2019

v3.4.0

@hhxsv5 hhxsv5 closed this as completed Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants