From d12fc6c4240176d686fd299e539720de13533a4a Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Fri, 8 Mar 2024 01:10:57 +0100 Subject: [PATCH] feat: update to match latest FDI --- CHANGELOG.md | 2 +- api_spec.yaml | 39 +++++++++++++++++++++++++++++++++++---- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 972fdb9..4c3b6e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Added an endpoint to query information about MFA factors +- Added `PUT` `/{apiBasePath}/mfa/info` to query information about MFA factors - Updated loginmethods (`{apiBasePath}/loginmethods`) response type to include a list of first factors ## [1.18.0] - 2023-08-XX diff --git a/api_spec.yaml b/api_spec.yaml index cf4959b..4e0a260 100644 --- a/api_spec.yaml +++ b/api_spec.yaml @@ -23,7 +23,7 @@ paths: /{apiBasePath}/mfa/info: - get: + put: tags: - MultiFactorAuth Recipe operationId: getMFAInfo @@ -70,14 +70,44 @@ paths: properties: status: $ref: '#/components/schemas/statusOK' - info: + factors: + type: object + properties: + alreadySetup: + type: array + items: + type: string + allowedToSetup: + type: array + items: + type: string + next: + type: array + items: + type: string + emails: + type: object + properties: + emailpassword: + type: array + items: + type: string + otp-email: + type: array + items: + type: string + link-email: + type: array + items: + type: string + phoneNumbers: type: object properties: - isAlreadySetup: + otp-phone: type: array items: type: string - isAllowedToSetup: + link-phone: type: array items: type: string @@ -1402,6 +1432,7 @@ paths: - emailPassword - thirdParty - passwordless + - firstFactors properties: emailPassword: type: object