Skip to content

Commit da12a57

Browse files
authored
Docs: github-mode: How to add a redirect_uri (Thinkmill#1358)
1 parent cad51fa commit da12a57

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: docs/src/content/pages/github-mode.mdoc

+24
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,30 @@ storage: {
110110

111111
Keystatic will only list branches starting with `my-prefix/` in the Admin UI, and will only let you create new branches with that prefix.
112112

113+
## Add `redirect_uri`
114+
115+
When you authorize on a server and get the following error from GitHub, you need to modify the GitHub application settings.
116+
117+
{% aside %}
118+
119+
> Be careful!
120+
> The `redirect_uri` is not associated with this application.
121+
> The application might be misconfigured or could be trying to redirect you to a website you weren't expecting.
122+
123+
{% /aside %}
124+
125+
To add a redirect URL:
126+
127+
1. Go to the [list of "Installed Github Apps"](https://docs.github.com/en/apps/using-github-apps/reviewing-and-modifying-installed-github-apps#navigating-to-the-github-app-you-want-to-review-or-modify)
128+
- For Users: [`https://github.com/settings/installations`](https://github.com/settings/installations)
129+
- For Organisations: `https://github.com/organizations/<org name>/settings/installations`
130+
2. Select the app > Choose "App settings"
131+
- For Users: `https://github.com/settings/apps/<app slug>`
132+
- For Organisations: `https://github.com/organizations/<org name>/settings/apps/<app slug>`
133+
3. Use "Add Callback URL" > Add the additional URL > Save
134+
135+
Now try reloading the authentication page.
136+
113137
---
114138

115139
## Deploying Keystatic

0 commit comments

Comments
 (0)