Skip to content

Commit

Permalink
feat: update to match latest FDI
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Mar 8, 2024
1 parent 4a42214 commit d12fc6c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
39 changes: 35 additions & 4 deletions api_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ paths:


/{apiBasePath}/mfa/info:
get:
put:
tags:
- MultiFactorAuth Recipe
operationId: getMFAInfo
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1402,6 +1432,7 @@ paths:
- emailPassword
- thirdParty
- passwordless
- firstFactors
properties:
emailPassword:
type: object
Expand Down

0 comments on commit d12fc6c

Please sign in to comment.