From 272ed0753a9e38220fa1e322f85c8bc80f246200 Mon Sep 17 00:00:00 2001 From: "K. Marsh" <15842002+Swamp2k9@users.noreply.github.com> Date: Thu, 6 Feb 2025 10:27:03 +1300 Subject: [PATCH 1/4] Update youtube.mdx Added OAuth2 Redirect URI details. --- pages/providers/youtube.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pages/providers/youtube.mdx b/pages/providers/youtube.mdx index ed73aea..2359bf8 100644 --- a/pages/providers/youtube.mdx +++ b/pages/providers/youtube.mdx @@ -31,6 +31,13 @@ Make sure that your consent screen has been configured. Add yourself as a test u ### Step 6 Fill in OAuth Details Create the OAuth client ID. Select "Web application" as the application type and fill in the details. +Under "Authorized redirect URIs", insert your OAuth2 Redirect URI. + +The OAuth2 Redirect URI is the location where the provider will redirect to after trying to login. This needs to set to your Postiz FRONTEND_URL + /integrations/social/ + youtube. + +eg: If you are running on a container, and your Postiz URL is: https://postiz.example.com, then your OAuth2 Redirect URI is https://postiz.example.com/integrations/social/youtube +eg: If you are running on localhost, and your Postiz URL is http://localhost:4200, then your OAuth2 Redirect URI is http://localhost:4200/integrations/social/linkedin-page + ### Step 7 Activate YouTubes API Go to Activated APIs and Services. Then click on Activate APIs and Services. Search YouTube Data API v3 and activate the API by clicking it and clicking Activate. Do the same Process with YouTube Analytics API and YouTube Reporting API. From d1cf88c0b5d804532f6d0ca2414fe51a47d800d8 Mon Sep 17 00:00:00 2001 From: "K. Marsh" <15842002+Swamp2k9@users.noreply.github.com> Date: Thu, 6 Feb 2025 10:34:28 +1300 Subject: [PATCH 2/4] Update youtube.mdx Updated URL to reflect YouTube. --- pages/providers/youtube.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/providers/youtube.mdx b/pages/providers/youtube.mdx index 2359bf8..7705b0d 100644 --- a/pages/providers/youtube.mdx +++ b/pages/providers/youtube.mdx @@ -36,7 +36,7 @@ Under "Authorized redirect URIs", insert your OAuth2 Redirect URI. The OAuth2 Redirect URI is the location where the provider will redirect to after trying to login. This needs to set to your Postiz FRONTEND_URL + /integrations/social/ + youtube. eg: If you are running on a container, and your Postiz URL is: https://postiz.example.com, then your OAuth2 Redirect URI is https://postiz.example.com/integrations/social/youtube -eg: If you are running on localhost, and your Postiz URL is http://localhost:4200, then your OAuth2 Redirect URI is http://localhost:4200/integrations/social/linkedin-page +eg: If you are running on localhost, and your Postiz URL is http://localhost:4200, then your OAuth2 Redirect URI is http://localhost:4200/integrations/social/youtube ### Step 7 Activate YouTubes API Go to Activated APIs and Services. Then click on Activate APIs and Services. Search YouTube Data API v3 and activate the API by clicking it and clicking Activate. From dbc799dc0caa326a8df4219e5364193bd5e679ee Mon Sep 17 00:00:00 2001 From: "K. Marsh" <15842002+Swamp2k9@users.noreply.github.com> Date: Thu, 6 Feb 2025 10:47:42 +1300 Subject: [PATCH 3/4] Update youtube.mdx Updated URI section to include formatting from other guides. --- pages/providers/youtube.mdx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/providers/youtube.mdx b/pages/providers/youtube.mdx index 7705b0d..1521c9b 100644 --- a/pages/providers/youtube.mdx +++ b/pages/providers/youtube.mdx @@ -33,10 +33,13 @@ Create the OAuth client ID. Select "Web application" as the application type and Under "Authorized redirect URIs", insert your OAuth2 Redirect URI. -The OAuth2 Redirect URI is the location where the provider will redirect to after trying to login. This needs to set to your Postiz FRONTEND_URL + /integrations/social/ + youtube. +### Add a Redirect URI -eg: If you are running on a container, and your Postiz URL is: https://postiz.example.com, then your OAuth2 Redirect URI is https://postiz.example.com/integrations/social/youtube -eg: If you are running on localhost, and your Postiz URL is http://localhost:4200, then your OAuth2 Redirect URI is http://localhost:4200/integrations/social/youtube + + +The redirect URI is the URL that YouTube will redirect to after you have logged in. Assuming you are running Postiz on `postiz.example.com`, this would be: `https://postiz.example.com/integrations/social/youtube`. Alternatively if you are running on `localhost:4200`, this would be `http://localhost:4200/integrations/social/youtube`. You only really need one of these, depending on where you are running Postiz. + +You can find this in the **OAuth2** section of the Discord Developer Portal. ### Step 7 Activate YouTubes API Go to Activated APIs and Services. Then click on Activate APIs and Services. Search YouTube Data API v3 and activate the API by clicking it and clicking Activate. From e1f4d37f57c454ce7f3bf6c2b5bb4d07bd907a04 Mon Sep 17 00:00:00 2001 From: "K. Marsh" <15842002+Swamp2k9@users.noreply.github.com> Date: Thu, 6 Feb 2025 11:02:42 +1300 Subject: [PATCH 4/4] Update youtube.mdx Added 'OAuth2Redirect' snippet and removed duplicate content in URI section. --- pages/providers/youtube.mdx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pages/providers/youtube.mdx b/pages/providers/youtube.mdx index 1521c9b..c8053d0 100644 --- a/pages/providers/youtube.mdx +++ b/pages/providers/youtube.mdx @@ -1,9 +1,11 @@ + --- title: YouTube description: How to add YouTube to your system --- import {Steps, Callout} from "nextra/components"; +import OAuth2Redirect from "../../components/snippets/oauth2redirect.tsx"; This integration requires that you have a Google account. @@ -37,10 +39,6 @@ Under "Authorized redirect URIs", insert your OAuth2 Redirect URI. -The redirect URI is the URL that YouTube will redirect to after you have logged in. Assuming you are running Postiz on `postiz.example.com`, this would be: `https://postiz.example.com/integrations/social/youtube`. Alternatively if you are running on `localhost:4200`, this would be `http://localhost:4200/integrations/social/youtube`. You only really need one of these, depending on where you are running Postiz. - -You can find this in the **OAuth2** section of the Discord Developer Portal. - ### Step 7 Activate YouTubes API Go to Activated APIs and Services. Then click on Activate APIs and Services. Search YouTube Data API v3 and activate the API by clicking it and clicking Activate. Do the same Process with YouTube Analytics API and YouTube Reporting API.