GitHub sign-in suits developer-facing sites: documentation, plugin support, communities. It needs an OAuth app on your GitHub account or organisation.
1. Register the OAuth app
- Open GitHub → Settings → Developer settings → OAuth Apps. For an organisation, use the organisation’s settings instead.
- Click New OAuth App.
- Fill in:
-
Application name: your site’s name, shown on GitHub’s consent screen.
-
Homepage URL: your site.
-
Authorization callback URL: copy it from FluentAuth → Settings → Social Login → GitHub. It is your login page with the provider named in the query string:
https://example.com/wp-login.php?fs_auth=github&fs_type=confirmMake sure it is exact; GitHub compares it character for character.
-
- Click Register application.
- Copy the Client ID, then click Generate a new client secret and copy that too. The secret is shown once.
2. Connect it to FluentAuth
Paste the two values on the GitHub card under Settings → Social Login, or add them to
wp-config.php:
define('FLUENT_AUTH_GITHUB_CLIENT_ID', 'Iv1.…');
define('FLUENT_AUTH_GITHUB_CLIENT_SECRET', '…');
Turn on Enable login with GitHub and save.
3. Test it
Open the login page in a private window and click Continue with GitHub. GitHub asks you to authorise the app once; after that, the button signs you straight in.
Email addresses
GitHub users can keep their email private. FluentAuth asks for the user:email scope and uses
the account’s primary verified address, which works even when the address is hidden from the
public profile. A GitHub account with no verified email cannot register.
Common errors
| GitHub says | Cause |
|---|---|
The redirect_uri MUST match the registered callback URL | The callback URL in the app does not match the one on the settings screen |
Bad credentials | The client secret was regenerated on GitHub and the old one is still in FluentAuth |