import { Component, inject, signal, OnInit } from '@angular/core'; import { AdminAuthService, type IAuthProvider, type IPlatformSettings, type TAuthProviderStatus, } from '../../../core/services/admin-auth.service'; import { ToastService } from '../../../core/services/toast.service'; @Component({ selector: 'app-auth-providers', standalone: true, template: `
Configure OAuth and LDAP authentication
Local Authentication
Allow email/password login
User Registration
Allow new account creation
Session Duration
{{ formatDuration(settings()!.auth.sessionDurationMinutes) }}
Add an OAuth or LDAP provider to enable single sign-on
{{ provider.name }} ยท {{ provider.type.toUpperCase() }}
@if (provider.type === 'oidc' && provider.oauthConfig) {{{ provider.oauthConfig.issuer }}
} @if (provider.type === 'ldap' && provider.ldapConfig) {{{ provider.ldapConfig.serverUrl }}
} @if (provider.lastTestedAt) {