import type { SSOFormData } from '../_types'

export const FALLBACK_TENANT_ID = '00000000-0000-0000-0000-000000000001'
export const FALLBACK_USER_ID = '00000000-0000-0000-0000-000000000001'
export const API_BASE = '/api/sdk/v1/sso'

export const DEFAULT_SCOPES = 'openid,email,profile'

export const AVAILABLE_ROLES = [
  { value: 'user', label: 'Benutzer' },
  { value: 'admin', label: 'Administrator' },
  { value: 'data_protection_officer', label: 'Datenschutzbeauftragter' },
  { value: 'auditor', label: 'Auditor' },
  { value: 'viewer', label: 'Nur Lesen' },
]

export const EMPTY_FORM: SSOFormData = {
  name: '',
  provider_type: 'oidc',
  issuer_url: '',
  client_id: '',
  client_secret: '',
  redirect_uri: '',
  scopes: DEFAULT_SCOPES,
  auto_provision: true,
  default_role: 'user',
  role_mappings: [],
}
