Phase 6 (Teil 2): OpenID Connect, LDAP/AD und SAML 2
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m41s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m48s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m15s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m17s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m48s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m26s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m59s
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m41s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m48s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m15s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m17s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m48s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m26s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m59s
- Gemeinsamer Treiber-Unterbau (App\Identity\IdentityDriver, IdentityDrivers, IdentityLogin, AttributeProfile); Entra ID nutzt ihn ebenfalls - Plugins oidc, ldap und saml mit Profil- und Gruppen-Zuordnung - Admin: Verfahren wählen, Formular je Verfahren, zuletzt empfangene Angaben - onelogin/php-saml als neue Abhängigkeit Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0ab0838050
commit
4fcc41ed30
172 changed files with 18940 additions and 293 deletions
57
resources/js/pages/Auth/DirectoryLogin.vue
Normal file
57
resources/js/pages/Auth/DirectoryLogin.vue
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import { Link, useForm } from '@inertiajs/vue3';
|
||||
import { ArrowLeft, Eye, EyeOff, LoaderCircle } from '@lucide/vue';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import FormField from '@/components/FormField.vue';
|
||||
import GuestLayout from '@/layouts/GuestLayout.vue';
|
||||
|
||||
/**
|
||||
* Anmeldung mit Benutzername und Passwort eines Verzeichnisses (LDAP / Active Directory).
|
||||
*/
|
||||
const props = defineProps({
|
||||
provider: { type: Object, required: true },
|
||||
});
|
||||
|
||||
const showPassword = ref(false);
|
||||
const form = useForm({ username: '', password: '' });
|
||||
|
||||
function submit() {
|
||||
form.post(props.provider.action, { onFinish: () => form.reset('password') });
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<GuestLayout :title="provider.label" description="Mit dem Benutzernamen und Passwort, mit dem Sie sich auch am Arbeitsplatz anmelden.">
|
||||
<form class="grid gap-5" @submit.prevent="submit">
|
||||
<FormField id="username" :label="provider.username_label" :error="form.errors.username">
|
||||
<Input id="username" v-model="form.username" autocomplete="username" autocapitalize="none" spellcheck="false" autofocus class="h-10" :aria-invalid="!!form.errors.username" />
|
||||
</FormField>
|
||||
|
||||
<FormField id="password" label="Passwort" :error="form.errors.password">
|
||||
<div class="relative">
|
||||
<Input id="password" v-model="form.password" :type="showPassword ? 'text' : 'password'" autocomplete="current-password" class="h-10 pr-10" :aria-invalid="!!form.errors.password" />
|
||||
<button
|
||||
type="button"
|
||||
class="absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground"
|
||||
:aria-label="showPassword ? 'Passwort verbergen' : 'Passwort anzeigen'"
|
||||
@click="showPassword = !showPassword"
|
||||
>
|
||||
<EyeOff v-if="showPassword" class="size-4" />
|
||||
<Eye v-else class="size-4" />
|
||||
</button>
|
||||
</div>
|
||||
</FormField>
|
||||
|
||||
<Button type="submit" size="lg" class="mt-2 h-10 w-full" :disabled="form.processing">
|
||||
<LoaderCircle v-if="form.processing" class="animate-spin" />
|
||||
Anmelden
|
||||
</Button>
|
||||
|
||||
<Link href="/login" class="inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground hover:text-foreground">
|
||||
<ArrowLeft class="size-4" /> Andere Anmeldung wählen
|
||||
</Link>
|
||||
</form>
|
||||
</GuestLayout>
|
||||
</template>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import { Link, useForm } from '@inertiajs/vue3';
|
||||
import { Eye, EyeOff, LoaderCircle } from '@lucide/vue';
|
||||
import { Building2, Eye, EyeOff, KeyRound, LoaderCircle, ShieldCheck } from '@lucide/vue';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Checkbox } from '@/components/ui/checkbox';
|
||||
import { Input } from '@/components/ui/input';
|
||||
|
|
@ -58,6 +58,9 @@ function submit() {
|
|||
<rect x="1" y="11" width="9" height="9" fill="#00a4ef" />
|
||||
<rect x="11" y="11" width="9" height="9" fill="#ffb900" />
|
||||
</svg>
|
||||
<Building2 v-else-if="provider.type === 'ldap'" class="size-[18px] text-muted-foreground" aria-hidden="true" />
|
||||
<ShieldCheck v-else-if="provider.type === 'saml'" class="size-[18px] text-muted-foreground" aria-hidden="true" />
|
||||
<KeyRound v-else class="size-[18px] text-muted-foreground" aria-hidden="true" />
|
||||
{{ provider.label }}
|
||||
</a>
|
||||
<div class="my-2 flex items-center gap-3 text-xs text-muted-foreground">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue