Support the ongoing development of Laravel.io →
Configuration Authentication Session
Last updated 2 years ago.
0

Maybe I got it by using the Auth::login(); method:

        Cas::authenticate();
        $uid = Cas::user();
        $userObject = \App\User::where('name' , $uid)->firstOrFail();
        if ( $userObject ) {
            Auth::login($userObject);
            Session::put('casUser' , $uid);
            return $next($request);
        }
0

Problem not solved. Every time loading a page a new session is created. Tried to check if Auth::user() is true to not log in again, but it didn't worked.

Any ideas?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.