Logging in with GitHub
Members log in with their GitHub account. Setting it up takes about five minutes: an OAuth app in the GitHub developer settings, its Client ID and a client secret in Poly Community, and a test. GitHub does not review the app, so it works for everyone as soon as you turn it on.
You need:
- A GitHub account. The app can belong to your own account or to an organization you run.
- Your site on https.
How single sign-on works for every provider, and what each setting does, is on Single sign-on.
1. Copy the two addresses
- In WordPress, go to Poly Community → Settings → Services → Single sign-on.
- Press Set up on the GitHub row.
- The dialog shows two addresses to copy:
- Homepage URL, the address of your site, such as
https://example.com/. - Redirect URI, such as
https://example.com/wp-json/wordplus/v1/sso/back, where GitHub sends members back.
- Homepage URL, the address of your site, such as

Leave the dialog open. Make the app in it opens the developer settings of GitHub.
2. Register the OAuth app
- In GitHub, open Settings → Developer settings → OAuth Apps and press New OAuth App (or Register a new application when you have none yet). For an app of an organization, go to the settings of the organization instead, then Developer settings → OAuth Apps.
- Fill in the form:
- Application name: the name of your community. People see it when GitHub asks them to authorize it.
- Homepage URL: the Homepage URL from the dialog.
- Application description: optional. GitHub shows it to people when they authorize the app.
- Redirect URI: the Redirect URI from the dialog, exactly as it is. Leave Allow wildcard matching off.
- Leave Enable Device Flow off. Expire user access tokens can stay as it is: your site uses the token once, at the login, and keeps none.
- Press Register application.

3. Copy the Client ID and a client secret
The page of the app opens.
- Copy the Client ID.
- Under Client secrets, press Generate a new client secret and copy it at once. GitHub shows it only this time, and says so above it.

A client secret of GitHub does not end by itself. If it is ever lost or seen by someone else, generate a new one, enter it in WordPress, then delete the old one in GitHub.
Further down the same page, Upload new logo gives the app a picture, such as the icon of your site. People see it beside the GitHub logo when they authorize the app.
4. Enter the keys
- Back in the dialog in WordPress, paste the Client ID and the Client secret.
- Decide who may use it with Let new people join with it. See Let new people join with it.
- Press Save the provider. The GitHub row now says Set up and Off: members do not see it yet.
5. Turn it on
Press Turn it on on the GitHub row, which opens Settings → Joining → Logging in. Turn GitHub on with its switch, and press Save changes. Continue with GitHub then shows on the login form of the community and on the WordPress login screen, in the dark grey of GitHub. With Let new people join with it on, it shows on the sign-up forms too.

6. Try it
-
In a private window, open the login page of your site and press Continue with GitHub.
-
Log in to GitHub. The first time, GitHub asks to authorize the app, and the only thing it asks for is your Email addresses (read-only). Press Authorize with your username.

GitHub, the first time someone logs in to the app -
You are back on your site. A member whose GitHub account is connected is logged in. Someone new is on the sign-up form with their name, a username and their email address filled in. When an account here already has the email address, see An account that already has the address.
What GitHub gives your site
The number of the GitHub account, the name (the username when the account has no name), the username, the picture, and the main email address of the account, only when GitHub has confirmed it.
- Someone new joins without a code for their address, as GitHub confirmed it. Their GitHub username is offered as their username here, unless a member already has it.
- A member who already has an account with that address, confirmed here, is logged in and GitHub is connected. See An account that already has the address.
Poly Community reads the profile, which needs no permission, and asks GitHub for one permission alone, the email addresses (the user:email scope), to find the main one. It signs each login with PKCE and asks the GitHub REST API in its current version. There is nothing to set for either.
When something goes wrong
GitHub says the redirect_uri is not associated with this application
The Redirect URI of the app is not exactly the one in the dialog in WordPress. Open the app in GitHub, paste it again under Redirect URIs, and press Update application. Check that nothing is added or left out: the same https, the same www or none, no slash at the end.
Someone new has to type their email address
GitHub gave no address: the main email address of their GitHub account is not confirmed at GitHub. They type an address on the sign-up form and confirm it with a code, or confirm theirs at GitHub first and log in again.
The login comes back with "GitHub could not be reached, or its answer could not be checked"
The Client secret in WordPress is not one of the app, for example after it was deleted in GitHub. Generate a new one and enter it. Services → Single sign-on shows the failure with the words of GitHub.
Anything else
A Forbidden page from your host right after GitHub, a login that always says it took too long, or a button that does not show: these happen with every provider and are on Common problems.