Skip to content

Commit

Permalink
Docs: github-mode: How to add a redirect_uri (Thinkmill#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans authored Nov 20, 2024
1 parent cad51fa commit da12a57
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/src/content/pages/github-mode.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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/<org name>/settings/installations`
2. Select the app > Choose "App settings"
- For Users: `https://github.com/settings/apps/<app slug>`
- For Organisations: `https://github.com/organizations/<org name>/settings/apps/<app slug>`
3. Use "Add Callback URL" > Add the additional URL > Save

Now try reloading the authentication page.

---

## Deploying Keystatic
Expand Down

0 comments on commit da12a57

Please sign in to comment.