Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: github-mode: How to add a redirect_uri #1358

Merged
merged 6 commits into from
Nov 20, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 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,32 @@ 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 icon="" %}

> 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
Loading