Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
Specification


Apiary
Status
titleget
 mithril/api/users/{user_id}/authentication_factors
Scopeauthentication_factor:read

Purpose

Get 2FA item by id (via Admin-console).

Request parameters

  • 2fa_id

Logic WS

  • Validate token & scope
  • Validate 2fa id 
  • Validate user_id FK
  • Get data by id 

    Code Block
    languagesql
    SELECT *
    FROM authentication_factors AS 2FA
    WHERE 2FA.id = $.id
    		AND 2FA.user_id = $.user_id


  • Return 200

Response

  • 200 if get list successful + 2FA_object_view
  • 4xx in other case