1. Home
  2. Docs
  3. API
  4. Social login and register

Social login and register

The endpoints to integrate social logins are easy to use and standardized. Unfortunately, you need to connect each service you want to use to your supplier’s account and instruct your app with your credentials.

Here’s how:

Facebook

  1. Go to https://developers.facebook.com/
    1. If you do not have a Facebook developer account, create one.
  2. Go to your App, the “My App” menu when logged in.
  3. Click the “Create App” button.
  4. What do you need your app to do? Build connected Experiences
  5. Create an App
    1. App Display Name: Enter the name of your app
    2. App Contact Email: your email
    3. Do you have a Business Manager account? you should know
  6. Add Products to Your App: Facebook Login (click the “Set Up” button)
  7. On the left side in the menu, under “PRODUCTS” -> Facebook Login, open Settings
  8. Client OAuth Settings
    1. Valid OAuth Redirect URIs: https://{your-project-name}.apigoat.com/api/v1/oauth/facebook/int_callback
  9. Go to Settings -> Basic
  10. Take notes of:
    1. App ID
    2. App Secret
    3. App Domains: {your-project-name}.apigoat.com
  11. In your App set those configurations for the provider.

GitHub

  1. Login or create an account on GitHub.
  2. Go to https://github.com/settings/developers
  3. Choose “OAuth Apps” on the left menu.
  4. Click “New OAuth App”
    1. Application name: {your-project-name}
      ! This is important, the APIgoat oAuth provider will send {your-project-name} in the authentication process.
    1. Homepage URL: Whatever you want
    2. Authorization callback URL: https://{your-project-name}.apigoat.com/api/v1/oauth/github/oauth2callback
  5. In the list of App, click on the newly created one.
  6. Take note of:
    1. Client ID
    2. Client secrets
  7. In your App set those configurations for the provider.

App configurations

For each login strategies, Facebook, GitHub or other, you need to direct your App to the right credentials.

In the Welcome page of your app, add the required information under the oAuth section.

How can we help?

Leave a Reply