mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 02:15:51 +00:00
feat(auth): add Zitadel OAuth Provider (#5490)
This commit is contained in:
1 parent
a77bd88258
commit
1968d4d494
8 files changed
+25
-1
No files matched your search
@@ -33,6 +33,17 @@ function get_socialite_provider(string $provider)
|
||||
return Socialite::driver($provider)->setConfig($authentik_clerk_config);
|
||||
}
|
||||
|
||||
if ($provider == 'zitadel') {
|
||||
$zitadel_config = new \SocialiteProviders\Manager\Config(
|
||||
$oauth_setting->client_id,
|
||||
$oauth_setting->client_secret,
|
||||
$oauth_setting->redirect_uri,
|
||||
['base_url' => $oauth_setting->base_url],
|
||||
);
|
||||
|
||||
return Socialite::driver('zitadel')->setConfig($zitadel_config);
|
||||
}
|
||||
|
||||
if ($provider == 'google') {
|
||||
$google_config = new \SocialiteProviders\Manager\Config(
|
||||
$oauth_setting->client_id,
|
||||
|
||||
Reference in new issue
Block a user