Skip to content

Commit 1f940f2

Browse files
authored
Merge pull request #44 from gitroomhq/bugfix-v2-v3-migration
Move OAuth2 redirect intructions to generic snippet
2 parents d22605e + 2aac238 commit 1f940f2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
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/` + `providername`.
2+
3+
* eg: If your Postiz URL is: `https://postiz.example.com`, then your OAuth2 Redirect URI is `https://postiz.example.com/integrations/social/`.
4+
* eg: If your Postiz URL is `https://localhost:5000`, then your OAuth2 Redirect URI is `https://localhost:5000/integrations/social/providername`.
5+
6+
You only need to set one OAuth2 Redirect URI when you are setting up your Postiz app.
7+
8+
{{ provider }}

pages/providers/discord.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ description: How to add discord to your system
44
---
55

66
import {Steps, Callout} from "nextra/components";
7+
import OAuth2Redirect from "../../components/snippets/oauth2redirect.mdx";
78

89
<Callout>
910
This integration requires that you have **Manage Server** permissions on the Discord server you want to integrate with.
@@ -29,6 +30,8 @@ DISCORD_CLIENT_SECRET="your_client_secret"
2930

3031
### Add a Redirect URI
3132

33+
<OAuth2Redirect />
34+
3235
The redirect URI is the URL that Discord 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/discord`. Alternatively if you are running on `localhost:4200`, this would be `http://localhost:4200/integrations/social/discord`. You only really need one of these, depending on where you are running Postiz.
3336

3437
You can find this in the **OAuth2** section of the Discord Developer Portal.

0 commit comments

Comments
 (0)