mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 04:15:55 +00:00
feat: 🛂 integrate Authentik authentication with Coolify
- Configured Authentik as the OAuth provider in Coolify.
This commit is contained in:
1 parent
d54fa6a680
commit
96ef0ef749
10 files changed
+112
No files matched your search
@@ -18,6 +18,17 @@ function get_socialite_provider(string $provider)
|
||||
return Socialite::driver('azure')->setConfig($azure_config);
|
||||
}
|
||||
|
||||
if ($provider == 'authentik') {
|
||||
$authentik_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('authentik')->setConfig($authentik_config);
|
||||
}
|
||||
|
||||
$config = [
|
||||
'client_id' => $oauth_setting->client_id,
|
||||
'client_secret' => $oauth_setting->client_secret,
|
||||
|
||||
Reference in new issue
Block a user