{% extends "base.html" %} {% from "components/ui.html" import page_header, empty_state %} {% block title %}{{ _('Integrations') }} - {{ app_name }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': 'Integrations'} ] %} {{ page_header( icon_class='fas fa-plug', title_text='Integrations', subtitle_text='Connect with third-party services to extend functionality', breadcrumbs=breadcrumbs ) }}

{{ _('Connect your Time Tracker with external services. Configure integrations below to sync data, automate workflows, and enhance productivity.') }}

{% if current_user.is_admin or current_user.has_permission('manage_oidc') %}

{{ _('OIDC / Single Sign-On') }}

{{ _('Configure OpenID Connect authentication for Single Sign-On (SSO) with your identity provider') }}

{% set auth_method = config.get('AUTH_METHOD', 'local') or 'local' %} {% set oidc_enabled = auth_method.lower() in ['oidc', 'both', 'all'] %} {% if oidc_enabled %} {{ _('Enabled') }} {% else %} {{ _('Not Configured') }} {% endif %}
{{ _('Setup Wizard') }}
{% endif %} {% if current_user.is_admin or current_user.has_permission('manage_settings') %}

{{ _('LDAP') }}

{{ _('Configure directory authentication via environment variables; use the wizard to build a working .env snippet and test connectivity.') }}

{% set auth_method_ldap = config.get('AUTH_METHOD', 'local') or 'local' %} {% set ldap_auth_enabled = auth_method_ldap.lower() in ['ldap', 'all'] %} {% if ldap_auth_enabled %} {{ _('Enabled') }} {% else %} {{ _('Not configured') }} {% endif %}
{{ _('Setup Wizard') }}
{% endif %}
{% for provider in available_providers %} {% set existing_integration = integrations|selectattr('provider', 'equalto', provider.provider)|first if integrations else none %}

{{ provider.display_name }}

{% if provider.description %}

{{ provider.description }}

{% endif %}
{% if existing_integration %} {% if existing_integration.is_active %} {{ _('Connected') }} {% else %} {{ _('Not Connected') }} {% endif %} {% if existing_integration.is_global %} {{ _('Global') }} {% endif %} {% if existing_integration.last_sync_at %} {{ _('Synced') }} {{ existing_integration.last_sync_at|user_date }} {% endif %} {% else %} {{ _('Not Set Up') }} {% endif %}
{% endfor %}
{% endblock %}