vigiloauth/vigilo

Add public endpoint to fetch system security questions

Offen

#372 geöffnet am 03.06.2025

 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Go (9 Forks)auto 404
good first issuepriority: mediumtask

Repository-Metriken

Stars
 (100 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 162T 7h) (1 gemergte PR in 30 T)

Beschreibung

Description: Brief description of what needs to be implemented and why.

User Story: As a user I want to see a list of available security questions So that I can select one during registration or account recovery

Endpoint/Component: This section can be deleted if not applicable to this feature.

  • Method: GET
  • Path: /security-questions

Example Response:

[
  {
    "id": 1,
    "question": "What was the name of your first pet?"
  },
  {
    "id": 2,
    "question": "What is your mother’s maiden name?"
  },
]

Acceptance Criteria:

  • Endpoint is publicly accessible (does not require authentication)
  • Returns only question IDs and their text (no answers or sensitive data)
  • Questions are fetched from system-configured seed data

Testing Requirements:

  • Unit Tests: Ensure the service returns expected data structure
  • Integration Tests: Validate the route returns correct data with proper status codes

Contributor Guide