Skip to content

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

fix minor typos in the blogpost

Kang Ming1853719831cd
diff --git a/apps/www/_blog/2023-04-13-supabase-auth-sso-pkce.mdx b/apps/www/_blog/2023-04-13-supabase-auth-sso-pkce.mdx
index 5bd75d29020..176f3d1cea3 100644
--- a/apps/www/_blog/2023-04-13-supabase-auth-sso-pkce.mdx
+++ b/apps/www/_blog/2023-04-13-supabase-auth-sso-pkce.mdx
@@ -18,15 +18,15 @@ Today we're excited to announce a few new features for Supabase Auth:
## Single Sign-On Support using SAML 2.0
-With Single Sign-On (SSO), your users can login with their company’s identity provider (IDP), a critical feature when you’re building applications for Enterprises.
+With Single Sign-On (SSO), your users can login with their company's identity provider (IDP), a critical feature when you're building applications for Enterprises.
-Every developer building a B2B application eventually needs the SSO authentication flow to onboard enterprise customers. SSO is a requirement for larger Enterprise customers because it’s a standard request in Enterprise Security Policues. Over the past few months, we’ve been [dogfooding SSO for our own Enterprise customers](https://supabase.com/docs/guides/platform/sso), and today we’re releasing it for you to do the same.
+Every developer building a B2B application eventually needs the SSO authentication flow to onboard enterprise customers. SSO is a requirement for larger Enterprise customers because it's a standard request in Enterprise Security Policues. Over the past few months, we've been [dogfooding SSO for our own Enterprise customers](https://supabase.com/docs/guides/platform/sso), and today we're releasing it for you to do the same.
-Building SSO into your application isn’t necessarily hard, but does come with some complexity. A lot of time can be spent understanding the nuances and details of the protocol - from dissecting the jargon to testing the implementation heavily. It took us months to build it for ourselves. With this release, you will have SSO setup and running in less than an hour so that you can focus on shipping the core features of your product. This feature is available for the [Pro-tier and above](https://supabase.com/pricing), starting today.
+Building SSO into your application isn't necessarily hard, but does come with some complexity. A lot of time can be spent understanding the nuances and details of the protocol - from dissecting the jargon to testing the implementation heavily. It took us months to build it for ourselves. With this release, you will have SSO setup and running in less than an hour so that you can focus on shipping the core features of your product. This feature is available for the [Pro-tier and above](https://supabase.com/pricing), starting today.
### Getting Started with SAML 2.0
-To get started, enable the [“SAML 2.0“](https://app.supabase.com/project/phcnitosaawbzytgyznx/auth/providers) [authentication method in the dashboard](https://app.supabase.com/project/_/auth/providers). We’ve added new commands to the [Supabase CLI](https://supabase.com/docs/guides/cli) to help with the configuration process:
+To get started, enable the [“SAML 2.0“](https://app.supabase.com/project/phcnitosaawbzytgyznx/auth/providers) [authentication method in the dashboard](https://app.supabase.com/project/_/auth/providers). We've added new commands to the [Supabase CLI](https://supabase.com/docs/guides/cli) to help with the configuration process:
```bash
$ supabase sso --help
@@ -44,7 +44,7 @@ Available Commands:
update Update information about an SSO identity provider
```
-Once you’ve added a new SSO identity provider to your project, it’s as simple as calling the `signInWithSSO()` from the `supabase-js` library:
+Once you've added a new SSO identity provider to your project, it's as simple as calling the `signInWithSSO()` from the `supabase-js` library:
```tsx
const { data } = await supabase.auth.signInWithSSO({ domain: 'acme.corp' })
@@ -54,9 +54,9 @@ if (data.url) window.location.href = data.url
### SSO with Row Level Security and multi-tenancy
-As usual, we’ve engineered this feature around the excellent capabilities of PostgreSQL.
+As usual, we've engineered this feature around the excellent capabilities of PostgreSQL.
-For example, you can use Row Level Security (RLS) to build multi-tenant applications, simply by using the provider’s unique identifier in the user’s JWT:
+For example, you can use Row Level Security (RLS) to build multi-tenant applications, simply by using the provider's unique identifier in the user's JWT:
```sql
create policy "Only allow read-write access to tenants" on tablename as restrictive to authenticated using (
@@ -64,7 +64,7 @@ create policy "Only allow read-write access to tenants" on tablename as restrict
);
```
-The journey to enterprise-readiness isn’t an end goal, it is a continuous process that demands constant attention and maintenance. With Supabase Auth, your team can offload this engineering burden to us and prioritize the features that actually matter.
+The journey to enterprise-readiness isn't an end goal, it is a continuous process that demands constant attention and maintenance. With Supabase Auth, your team can offload this engineering burden to us and prioritize the features that actually matter.
## Server-Side and Mobile Auth
@@ -72,7 +72,7 @@ Many developers today are using Supabase to build mobile apps, and server-side r
### A brief history of Supabase Auth
-When we [launched](https://news.ycombinator.com/item?id=24072051) Supabase Auth, our target was JAMstack developers. In these cases, the protocol used between the user’s application and Supabase Auth is known as the **\*\*\*\***\*\*\***\*\*\*\***[Implicit Grant Flow](https://www.rfc-editor.org/rfc/rfc6749#section-4.2):\*
+When we [launched](https://news.ycombinator.com/item?id=24072051) Supabase Auth, our target was JAMstack developers. In these cases, the protocol used between the user's application and Supabase Auth is known as the **\*\*\*\***\*\*\***\*\*\*\***[Implicit Grant Flow](https://www.rfc-editor.org/rfc/rfc6749#section-4.2):\*
![dark mode](/images/blog/launch-week-7/day-4-supabase-auth-sso-pkce/supabase-auth-implicit-grant-flow--dark.svg)
@@ -97,13 +97,13 @@ Server-side auth unlocks a number of benefits. Developers can:
### Introducing PKCE
-To solve these problems, we’re introducing support for the _Proof Key for Code Exchange_ flow \*_(PKCE, pronounced “pixy”)_.\*
+To solve these problems, we're introducing support for the _Proof Key for Code Exchange_ flow \*_(PKCE, pronounced “pixy”)_.\*
-The PKCE flow introduces a _code verifier_ (a randomly generated secret) and a **\*\***\*\*\***\*\***code challenge (**\*\***\*\*\***\*\***the hash of the **_code verifier)._** The authorization code is returned as a query parameter so it’s accessible on the server. During the PKCE flow:
+The PKCE flow introduces a _code verifier_ (a randomly generated secret) and a _code challenge_ (the hash of the _code verifier_). The authorization code is returned as a query parameter so it's accessible on the server. During the PKCE flow:
1. The _code challenge_ is sent to Supabase Auth, which returns an _authorization code._
-2. The client sends the _authorization code_ together with the _code verifier_ to obtain the user’s session.
-3. Supabase Auth checks if the \***\*\*\*\*\*\*\***code verifier\***\*\*\*\*\*\*\*** matches the **\*\***\*\*\*\***\*\***code challenge**\*\***\*\*\*\***\*\*** sent earlier by computing the hash. This renders a malicious attacker’s attempt to intercept the authorization code useless, since they need to know the value of the _code verifier_ as well.
+2. The client sends the _authorization code_ together with the _code verifier_ to obtain the user's session.
+3. Supabase Auth checks if the _code verifier_ matches the _code challenge_ sent earlier by computing the hash. This renders a malicious attacker's attempt to intercept the authorization code useless, since they need to know the value of the _code verifier_ as well.
![dark mode](/images/blog/launch-week-7/day-4-supabase-auth-sso-pkce/supabase-auth-pkce-flow--dark.svg)
@@ -115,7 +115,7 @@ light mode
### Migrating to PKCE on the client
-Over the next few weeks you’ll be able to use it with the Supabase libraries. We’ve already added PKCE to the [JavaScript](https://supabase.com/docs/reference/javascript/installing) client library and our [auth-helpers](https://supabase.com/docs/guides/auth/auth-helpers) library. If you’re using `supabase-js` , you can switch to PKCE by initializing your client with the following option:
+Over the next few weeks you'll be able to use it with the Supabase libraries. We've already added PKCE to the [JavaScript](https://supabase.com/docs/reference/javascript/installing) client library and our [auth-helpers](https://supabase.com/docs/guides/auth/auth-helpers) library. If you're using `supabase-js` , you can switch to PKCE by initializing your client with the following option:
```tsx
import { createClient } from '@supabase/supabase-js'
@@ -127,11 +127,11 @@ const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY, {
})
```
-For client-side auth, that’s all you need to do to switch over. `supabase-js` will handle the generation and storage for the code verifier, as well as exchanging the authorization code for the user’s session.
+For client-side auth, that's all you need to do to switch over. `supabase-js` will handle the generation and storage for the code verifier, as well as exchanging the authorization code for the user's session.
### Migrating to PKCE on the server
-Server-side authentication is now a lot easier. Let’s look at an example using NextJS.
+Server-side authentication is now a lot easier. Let's look at an example using NextJS.
Install the `next` version of auth-helpers (lets use the `nextjs` version for this example)
@@ -211,7 +211,7 @@ While PKCE support is great, that is not the only news for you mobile app develo
Building apps for iOS requires support for native _Sign in with Apple_. We heard the community's requests for native sign-in. We hope you join our excitement to officially announce support for native _Sign in with Apple_.
-Your app’s iOS Bundle ID can now be configured in the Apple provider section of your project’s dashboard.
+Your app's iOS Bundle ID can now be configured in the Apple provider section of your project's dashboard.
![native-apple-login-on-iOS.png](/images/blog/launch-week-7/day-4-supabase-auth-sso-pkce/native-apple-login-on-iOS.png)
@@ -221,9 +221,9 @@ This is the only prerequisite for triggering a native _Sign in with Apple._ With
final AuthResponse response = await supabase.auth.signInWithApple();
```
-It’s that easy! No need to set up deep links, no need to pass any parameters.
+It's that easy! No need to set up deep links, no need to pass any parameters.
-We’re just starting with Apple login, and soon add support for Google login.
+We're just starting with Apple login, and soon add support for Google login.
## Wrapping Up