jleitch
2 weeks ago
143
5
Laravel

Socialite Issue

Posted 2 weeks ago by jleitch

Hi all, hoping you can help.

I have a base install of Laravel 8.3 that I'm trying to get working with Socialite and the Okta provider. Unfortunately, when I access the route that triggers the redirectToProvider method it redirects me to my localhost route followed by oauth2/v1 etc rather than taking me to Okta.

"http://localhost/oauth2/v1/authorize?client_id"

public function redirectToProvider()
    {
        return Socialite::driver('okta')->redirect();
    }

APP_URL setting in .env is set to the correct full path (its a few deep e.g. localhost/app1/appname/public)

I'm at a loss at what else to try - any suggestions/questions?

Thanks

Please sign in or create an account to participate in this conversation.