vigiloauth/vigilo

Add public endpoint to fetch system security questions

開放

#372 建立於 2025年6月3日

 (0 則留言) (0 個反應) (1 位負責人)Go (9 個分叉)auto 404
good first issuepriority: mediumtask

倉庫指標

星標
 (100 顆星)
PR 合併指標
 (平均合併 162天 7小時) (30 天內合併 1 個 PR)

描述

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

貢獻者指南