Skip to content

[stable31] feat: disable identify methods none engine - #6057

Merged
vitormattos merged 8 commits into
stable31from
backport/6054/stable31
Dec 9, 2025
Merged

vitormattos merged 8 commits into
stable31from
backport/6054/stable31

Conversation

@backportbot-libresign

Copy link
Copy Markdown

Backport of PR #6054

Add setEngine() method to IEngineHandler interface and implement
in AEngineHandler to automatically configure identify methods based
on certificate engine selection.

When engine is 'none', only account identification is enabled since
no certificate infrastructure is available for other methods.

Related to #5145

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Add POST /api/v1/admin/certificate/engine endpoint that sets the
engine and returns updated identify_methods configuration.

This allows frontend to receive processed identify methods data
with labels and friendly names after engine changes.

Related to #5145

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Add saveCertificateEngine() action that calls the REST endpoint
and updates both engine and identify_methods state reactively.

Uses axios promise chain pattern for consistency with existing
store actions.

Related to #5145

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Update CertificateEngine component to use store action and emit
event after setup check completes.

This ensures proper timing for cross-component communication.

Related to #5145

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Add v-if directive to hide IdentificationFactors section when
certificate engine is 'none', and watch identifyMethods to ensure
UI updates reactively when switching engines.

This prevents users from configuring identification methods that
require certificate infrastructure.

Fixes #5145

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Add comprehensive test coverage for configureIdentifyMethodsForEngine
including edge cases and data provider patterns.

Tests validate that 'none' engine correctly configures only account
identification with minimal configuration.

Related to #5145

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
The identify_methods array was incorrectly annotated as 'array' which
violated OpenAPI documentation standards. Changed to 'array<array<string, mixed>>'
to properly represent a list of non-empty objects.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…otation

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in LibreSign Roadmap Dec 9, 2025
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (31) milestone Dec 9, 2025
@vitormattos
vitormattos merged commit d0f90cb into stable31 Dec 9, 2025
62 checks passed
@vitormattos
vitormattos deleted the backport/6054/stable31 branch December 9, 2025 16:25
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in LibreSign Roadmap Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant