Skip to main content

GitHub

Configuring GitHub as a Social Provider

In this section, we will show you how to provide GitHub as an option on your cidaas login page. After configuring GitHub as a social provider in cidaas, you will get a new option called

  • Login with GitHub on the login page.
  • Sign up with GitHub on the registration page.

On your login page.

social-login-provider-display-page

The overall process in a nutshell would be,

  1. On cidaas admin portal: Get Return URL for GitHub.
  2. On GitHub developer console: Get client ID and client secret.
  3. On cidaas admin portal: Add the GitHub client ID and client secret in cidaas application and select appropriate cidaas applications for which you want to enable GitHub.

We'll guide you through the process steps — it's pretty easy.

GitHub setup

Get redirect URL for GitHub

In this section, you'll find steps on how to get the Github Allowed return URL from cidaas admin portal.

  1. Log in to the cidaas Admin portal. Navigate to cidaas Admin dashboard -> Settings -> Login Providers -> Social Providers, select GitHub from the menu and click on Create provider.

    social-login-provider

    Amazon-select

  2.  Scroll down to the section "Configuration Steps for GitHub App," which will show Redirect URL. Copy it.

    social-provider-github-uri

Generate client ID and client secret

  1. Log in to the GitHub developer console.

  2. Click on your Profile picture > Settings.

  3. Click on Developer settings > Oauth Apps > Register a new application.

  4. Enter all the details and the redirect url that you obtained from the redirect url section, and click on the register application.

  5. Copy the client ID and Secret.

    github-as-social-provider-client-id

  6. Let us move to the cidaas setup section above. .

cidaas setup

Configure social provider setup in cidaas

In this section, you'll find steps on

  • how to add client ID and client secret obtained from your GitHub account into your cidaas application and
  • how to choose cidaas client applications for which you want to enable GitHub as a social provider.
  1. Now, navigate to cidaas Admin dashboard -> Settings -> Login Providers -> Social Providers.

    social-login-provider

  2. Click on GitHub > Create provider, enter the required details, and save.

    • Enter the Client ID and Client secret acquired from the GitHub setup section.

    social-login-app-deatils

  3. After you save, you can select the application you want GitHub to use as a social provider.

    social-login-mapping-the-app

  4. GitHub is available as a social provider for your application.

Reference Link how to configure other providers?

Need help implementing this?

Please contact us on our Developer Support Page.