From aa651e3d827b60ff8c880e186054c92f7c71d2bc Mon Sep 17 00:00:00 2001 From: Riyaadh Abrahams Date: Thu, 22 Sep 2022 18:57:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=80=20Add=20Docs=20section=20for=20Aut?= =?UTF-8?q?horized=20redirect=20URIs=20(#18)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/pages/providers/oauth.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/src/pages/providers/oauth.md b/docs/src/pages/providers/oauth.md index dc5d555..615498b 100644 --- a/docs/src/pages/providers/oauth.md +++ b/docs/src/pages/providers/oauth.md @@ -8,6 +8,13 @@ layout: ../../layouts/MainLayout.astro OAuth providers will probably be the most common reason for developers to use Astro Auth. Astro Auth supports PKCE security mechanism as well. +## Authorized redirect URIs + +The "Authorized redirect URIs" must be configured on your OAuth provider's console. + +- For production: https://{YOUR_DOMAIN}/api/auth/oauth/{PROVIDER} +- For development: http://localhost:3000/api/auth/oauth/{PROVIDER} + ## OAuth Providers Inside the `@astro-auth/provider` package, you will find 8 OAuth providers including their own UI components in the `@astro-auth/ui` package. Here is the list of OAuth providers: