Lumen-framework: Lumen Socialite - Session store not set on request.

Created on 6 Jun 2017  路  9Comments  路  Source: laravel/lumen-framework

  • Lumen Version: 5.4.2
  • PHP Version: 7.1.4
  • Database Driver & Version: MySQL

Description:

Not sure if this the right place to write the issue since there's no way to put in laravel/socialite repo. Knowing that the lumen, doesn't work in the session. How do I solve this using socialite package in Lumen?

Error: "Session store not set on request".

Steps To Reproduce:

Access this method

public function redirectToProvider($provider) { return Socialite::driver($provider)->redirect(); }

@GrahamCampbell @taylorotwell

Most helpful comment

My Socialite works perfectly

    public function redirectToLinkedin()
    {
        return Socialite::driver('linkedin')->stateless()->redirect();
    }

I do use that with laravel/socialite with no extra.

@pmventura Since that's no bug. I suggest you to close this thread.

All 9 comments

@GrahamCampbell do you have any suggestions?

@pmventura try use

return Socialite::driver($provider)->stateless()->redirect();

@F1NaL

I got an error. Here's the response

{"message":"Call to undefined method Symfony\\Component\\HttpFoundation\\RedirectResponse::header()","status_code":500}

Try composer require illuminate/routing

Try composer require illuminate/routing

Definitely should not be needed on Lumen.

Lumen is not really designed for sessions to work I think?

As i now Lumen designed for API service. Look to jwt token for auth users

@F1NaL @GrahamCampbell

Does it mean that there's no way to fix laravel socialite in Lumen? I'm still stucked on this.

My Socialite works perfectly

    public function redirectToLinkedin()
    {
        return Socialite::driver('linkedin')->stateless()->redirect();
    }

I do use that with laravel/socialite with no extra.

@pmventura Since that's no bug. I suggest you to close this thread.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cvinothkumar picture cvinothkumar  路  3Comments

zhengyuhe123 picture zhengyuhe123  路  4Comments

Andrei-Vakulski picture Andrei-Vakulski  路  3Comments

jampack picture jampack  路  3Comments

concept47 picture concept47  路  3Comments