2024-03-06 16:30:19 +00:00
< div >
2024-08-06 12:36:56 +00:00
< x - slot : title >
Settings | Coolify
</ x - slot >
< x - settings . navbar />
2024-03-06 16:30:19 +00:00
< form wire : submit = 'submit' class = " flex flex-col " >
< div class = " flex flex-col " >
2025-06-26 10:23:08 +00:00
< div class = " flex items-center gap-2 pb-2 " >
2024-03-06 16:30:19 +00:00
< h2 > Authentication </ h2 >
< x - forms . button type = " submit " >
Save
</ x - forms . button >
</ div >
2024-08-06 12:36:56 +00:00
< div class = " pb-4 " > Custom authentication ( OAuth ) configurations .</ div >
2024-03-06 16:30:19 +00:00
</ div >
< div class = " flex flex-col gap-2 pt-4 " >
@ foreach ( $oauth_settings_map as $oauth_setting )
2025-06-26 10:23:08 +00:00
< div class = " p-4 border dark:border-coolgray-300 border-neutral-200 " >
2024-12-12 09:11:46 +00:00
< h3 > {{ ucfirst ( $oauth_setting -> provider ) }} </ h3 >
2024-03-06 16:30:19 +00:00
< div class = " w-32 " >
2024-12-13 11:03:05 +00:00
< x - forms . checkbox instantSave = " instantSave(' { { $oauth_setting->provider }}') "
id = " oauth_settings_map. { { $oauth_setting->provider }}.enabled " label = " Enabled " />
2024-03-06 16:30:19 +00:00
</ div >
< div class = " flex flex-col w-full gap-2 xl:flex-row " >
2024-08-06 12:36:56 +00:00
< x - forms . input id = " oauth_settings_map. { { $oauth_setting->provider }}.client_id "
label = " Client ID " />
< x - forms . input id = " oauth_settings_map. { { $oauth_setting->provider }}.client_secret "
2024-10-09 03:14:27 +00:00
type = " password " label = " Client Secret " autocomplete = " new-password " />
2025-06-26 10:23:08 +00:00
< x - forms . input id = " oauth_settings_map. { { $oauth_setting->provider }}.redirect_uri "
placeholder = " { { route('auth.callback', $oauth_setting->provider ) }} " label = " Redirect URI " />
2024-03-06 16:30:19 +00:00
@ if ( $oauth_setting -> provider == 'azure' )
2024-08-06 12:36:56 +00:00
< x - forms . input id = " oauth_settings_map. { { $oauth_setting->provider }}.tenant "
label = " Tenant " />
2024-03-06 16:30:19 +00:00
@ endif
2025-02-17 00:44:22 +00:00
@ if ( $oauth_setting -> provider == 'google' )
< x - forms . input id = " oauth_settings_map. { { $oauth_setting->provider }}.tenant "
helper = " Optional parameter that supplies a hosted domain (HD) to Google, which<br>triggers a login hint to be displayed on the OAuth screen with this domain.<br><br><a class='underline dark:text-warning text-coollabs' href='https://developers.google.com/identity/openid-connect/openid-connect#hd-param' target='_blank'>Google Documentation</a> "
label = " Tenant " />
@ endif
2025-06-26 10:23:08 +00:00
@ if (
$oauth_setting -> provider == 'authentik' ||
$oauth_setting -> provider == 'clerk' ||
2025-09-09 13:47:02 +00:00
$oauth_setting -> provider == 'zitadel' ||
$oauth_setting -> provider == 'gitlab' )
2024-09-29 16:51:41 +00:00
< x - forms . input id = " oauth_settings_map. { { $oauth_setting->provider }}.base_url "
label = " Base URL " />
@ endif
2024-03-06 16:30:19 +00:00
</ div >
</ div >
@ endforeach
</ div >
</ form >
2024-03-22 11:06:16 +00:00
</ div >