Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: add images and flow diagram

[email protected]665f9204316c
diff --git a/apps/www/_blog/2022-12-14-mfa-auth-via-rls.mdx b/apps/www/_blog/2022-12-14-mfa-auth-via-rls.mdx
index 41ac3052bcf..aaef2e6e2e8 100644
--- a/apps/www/_blog/2022-12-14-mfa-auth-via-rls.mdx
+++ b/apps/www/_blog/2022-12-14-mfa-auth-via-rls.mdx
@@ -2,12 +2,14 @@
title: 'Multi-factor Authentication via Row Level Security Enforcement'
description: MFA Auth with enforcement via RLS
author: joel_lee,kangmingtay,stojan
- image: lw6-hackathon/auth.jpg
- thumb: lw6-hackathon/auth.jpg
+ image: lw6-auth/thumbnail.jpg
+ thumb: lw6-auth/thumbnail.jpg
tags:
- launch-week
- auth
- date: '2022-12-13'
+ - mfa
+ - saml
+ date: '2022-12-14'
toc_depth: 3
---
@@ -40,6 +42,7 @@ In the event that the user faces difficulties entering a QR code the user can al
An MFA flow can be broken into two key steps: Enrollment and Verification. During the *Enrollment* process Supabase Auth exchanges secrets with the user’s authenticator application. During the *Verification* process, the device makes use of the timestamp together with the secret to produce a six digit code that the server can verify.
+![Flowchart of an MFA flow](apps/www/public/images/blog/lw6-auth/mfa-flow.png)
**Enrollment**
To generate a QR code, call the `/enroll` endpoint which returns an SVG encoded QR and the secret. Thereafter, create a challenge by calling the `/challenge` endpoint. Once the user has entered the six digit TOTP code generated by their authenticator app, call the`/verify` endpoint with the corresponding factor and challenge details.
@@ -146,4 +149,4 @@ Be mindful of your user’s preference, though. If a user has enabled MFA, they
For starters, we are looking to support WebAuthn and FIDO2 compliant devices such as Yubikeys. Further, we will also be looking to facilitate easier configuration of MFA via email triggers on key actions. If you have MFA requirements which are not covered here feel free to write to us at support[at]supabase.io .
-We are grateful to our early MFA users for the support and feedback provided throughout this period. In particular, we would like to thank Fabian Beer, Ishaan, and [Happl](https://happl.com) whose detailed feedback helped to shape our implementation. We would also like to specially thank the community behind [otp](https://github.com/pquerna/otp) and [svgo](https://github.com/ajstarks/svgo) libraries - their work is indispensable to this implementation.
+We are grateful to our early MFA users for the support and feedback provided throughout this period. In particular, we would like to thank [Fabian Beer](https://madebyfabian.com), [Cogram](https://www.cogram.com), and [Happl](https://happl.com) whose detailed feedback helped to shape our implementation. We would also like to specially thank the community behind [otp](https://github.com/pquerna/otp) and [svgo](https://github.com/ajstarks/svgo) libraries - their work is indispensable to this implementation.
diff --git a/apps/www/public/images/blog/lw6-auth/mfa-flow.png b/apps/www/public/images/blog/lw6-auth/mfa-flow.png
new file mode 100644
index 00000000000..7b5eb21d6b2
Binary files /dev/null and b/apps/www/public/images/blog/lw6-auth/mfa-flow.png differ
diff --git a/apps/www/public/images/blog/lw6-auth/thumb.jpg b/apps/www/public/images/blog/lw6-auth/thumb.jpg
new file mode 100644
index 00000000000..9fe98a7d90e
Binary files /dev/null and b/apps/www/public/images/blog/lw6-auth/thumb.jpg differ