Skip to content

Commit

Permalink
fix: update openapi spec for MFA (Phone) (supabase#1689)
Browse files Browse the repository at this point in the history
## What kind of change does this PR introduce?

Complement to supabase#1668 

Add OpenAPI specification for MFA (Phone). In particular, updates the
parameters and `/enroll` `/challenge` and `/verify`
  • Loading branch information
J0 authored Aug 1, 2024
1 parent 4aef63f commit a3da4b8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -693,11 +693,15 @@ paths:
type: string
enum:
- totp
- phone
friendly_name:
type: string
issuer:
type: string
format: uri
phone:
type: string
format: phone
responses:
200:
description: >
Expand All @@ -713,6 +717,7 @@ paths:
type: string
enum:
- totp
- phone
totp:
type: object
properties:
Expand All @@ -722,6 +727,9 @@ paths:
type: string
uri:
type: string
phone:
type: string
format: phone
400:
$ref: "#/components/responses/BadRequestResponse"

Expand All @@ -741,6 +749,18 @@ paths:
schema:
type: string
format: uuid
requestBody:
content:
application/json:
schema:
type: object
properties:
channel:
type: string
enum:
- sms
- whatsapp

responses:
200:
description: >
Expand Down Expand Up @@ -1959,6 +1979,11 @@ components:
description: |-
Usually one of:
- totp
- phone
phone:
type: string
format: phone


IdentitySchema:
type: object
Expand Down

0 comments on commit a3da4b8

Please sign in to comment.