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">
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
<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)
|
2024-03-22 11:06:16 +00:00
|
|
|
<div class="p-4 border dark:border-coolgray-300">
|
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" />
|
2024-08-06 12:36:56 +00:00
|
|
|
<x-forms.input id="oauth_settings_map.{{ $oauth_setting->provider }}.redirect_uri"
|
|
|
|
|
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
|
2024-09-29 16:51:41 +00:00
|
|
|
@if ($oauth_setting->provider == 'authentik')
|
|
|
|
|
<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>
|