Support the ongoing development of Laravel.io →
posted 9 years ago
Authentication

Hi I'm using Socialite to validate users when they log into the backend of my site and it's working well. Now I need to validate another type of user, which is not going to validate against the database. Is there a way to set the redirect url on runtime? So far it seems Socialite can only use a hardcoded url from the config.

Last updated 3 years ago.
0

is this helpful ?

public function redirect($provider,$redirectUrl,$scopes)
{
    return Socialite::with($provider)->scopes($scopes)->redirectUrl($redirectUrl)->redirect();
}
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jezzdk jezzdk Joined 12 May 2016

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.

© 2025 Laravel.io - All rights reserved.