mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 16:14:35 +00:00
fix(socialite): add custom base URL support for GitLab provider in OAuth settings
This commit is contained in:
1 parent
1ca94b90da
commit
45a7370b55
2 files changed
+9
-2
No files matched your search
@@ -70,8 +70,14 @@ function get_socialite_provider(string $provider)
|
||||
'infomaniak' => \SocialiteProviders\Infomaniak\Provider::class,
|
||||
];
|
||||
|
||||
return Socialite::buildProvider(
|
||||
$socialite = Socialite::buildProvider(
|
||||
$provider_class_map[$provider],
|
||||
$config
|
||||
);
|
||||
|
||||
if ($provider == 'gitlab' && !empty($oauth_setting->base_url)) {
|
||||
$socialite->setHost($oauth_setting->base_url);
|
||||
}
|
||||
|
||||
return $socialite;
|
||||
}
|
||||
Reference in new issue
Block a user