diff --git a/docs/src/content/pages/github-mode.mdoc b/docs/src/content/pages/github-mode.mdoc index 3689a6baa..4e196a6fb 100644 --- a/docs/src/content/pages/github-mode.mdoc +++ b/docs/src/content/pages/github-mode.mdoc @@ -110,6 +110,30 @@ storage: { Keystatic will only list branches starting with `my-prefix/` in the Admin UI, and will only let you create new branches with that prefix. +## Add `redirect_uri` + +When you authorize on a server and get the following error from GitHub, you need to modify the GitHub application settings. + +{% aside %} + +> Be careful! +> The `redirect_uri` is not associated with this application. +> The application might be misconfigured or could be trying to redirect you to a website you weren't expecting. + +{% /aside %} + +To add a redirect URL: + +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) + - For Users: [`https://github.com/settings/installations`](https://github.com/settings/installations) + - For Organisations: `https://github.com/organizations//settings/installations` +2. Select the app > Choose "App settings" + - For Users: `https://github.com/settings/apps/` + - For Organisations: `https://github.com/organizations//settings/apps/` +3. Use "Add Callback URL" > Add the additional URL > Save + +Now try reloading the authentication page. + --- ## Deploying Keystatic