GitHub social sign in
You can enable users to sign up and sign in using their GitHub credentials. To enable this, you’ll need some technical know-how and a GitHub app and credentials.
Get the Kinde callback URL
Link to this section- In Kinde, go to Settings > Authentication.
- In the Social Connections section, select Add connection.
- In the window that appears, select GitHub, then select Save.
- On the GitHub tile, select Configure.
- In the Callback URL section:
- If you use Kinde’s domain as your default, copy the Kinde domain URL.
- If you use custom domains, select the Use custom domain instead switch.
- If you have only one custom domain, copy the Custom domain URL. If you have custom domains for multiple organizations, select each one from the list and copy the callbacks for each. You need to enter all custom domain callbacks in the provider app.
- Use the copied Callback URL to set up the app, see below.
Create GitHub app
Link to this section- Sign in to your GitHub account, select the Account dropdown menu at the top right corner, and choose Settings.
- From the menu on the left, select Developer settings. (https://github.com/settings/apps)
- Select GitHub Apps and then select New GitHub app.
- Give the app a name.
- Enter your app’s Homepage URL.
- Enter or paste the Kinde callback URLs you copied earlier, into the Authorization callback URL field. Add entries for all your organization custom domain callbacks, e.g. account.customdomainone.com/login/callback, account.customdomaintwo.com/login/callback, etc.
- Select the Request user authorization (OAuth) during installation option**.**
- In the Webhooks section, deselect the Webhook Active option (unless you want to add webhook URL details).
- (Recommended) In the Permissions section, open the Account permissions options and change the Email addresses access to Read only. This enables Kinde to more easily match up user accounts with access to all the users’ email addresses.
- Select Create GitHub App. The app is created.
Copy Client ID and Client secret
Link to this section- On the App you just created, select Edit.
- Copy the Client ID.
- Select Generate a new client secret.
- Copy these values to a text file or other temporary and secure place for adding to Kinde.
Add GitHub credentials to Kinde
Link to this section- In Kinde, go to Settings > Authentication.
- On the GitHub tile, select Configure.
- Paste the Client ID and Client secret into the relevant fields.
- Select if you want to treat this connection as a trusted provider. A trusted provider is one that guarantees the email they issue is verified. We recommend leaving this off for maximum security.
- Select which applications will use GitHub sign in.
- Select Save. Users will now see GitHub as an option to sign up and sign in to your product.