Github AS OAuth Provider – Cloud OAuth


Part 2: Setup miniOrange with Github


Step 1. Configure miniOrange as SP in Github

    Obtain the following steps to get callback url.

  • Go to miniOrange Admin Console.
  • From the left navigation bar, select Identity Provider.
  • azure ad saml Apps
  • Click on the Add Identity Provider button.
  • azure ad saml Apps
  • You will get the callback URL here, keep it handy this would be required in next steps.
  • azure ad saml Apps
  • Login to GitHub : Go to Github Developer and login with your account. Click on settings.
  • OAuth/OpenID/OIDC Single Sign On (SSO), GitHub SSO Login Setup GitHub
  • Select Developer settings.
  • OAuth/OpenID/OIDC Single Sign On (SSO), GitHub SSO Login Developer settings
  • Create App : Select OAuth Apps and click on Register a new application button.
  • OAuth/OpenID/OIDC Single Sign On (SSO), GitHub SSO Login Create App
  • Enter app credentials : Enter app name, plugin homepage URL. Copy callback URL from the plugin and paste it under Authorized callback URL field.
  • OAuth/OpenID/OIDC Single Sign On (SSO), GitHub SSO Login Enter app credentials
  • Copy Client ID and Client Secret.
  • OAuth/OpenID/OIDC Single Sign On (SSO), GitHub SSO Login Client ID
  • This step is optional. Follow this step if the email is returned as null while further configuring the plugin. Go to profile and set public email.
  • If Public Email field is disabled, go to Emails and uncheck the option Keep my email addresses private.
  • github_emails_tab

Step 2. Configure Github in miniOrange.

  • Go to miniOrange Admin Console.
  • From the left navigation bar select Identity Provider.
  • azure ad saml Apps
  • Select OAuth
  • azure ad saml Apps
  • Enter the following values.
  • IdP Name Custom Provider
    IdP Display Name Choose appropriate Name
    OAuth Authorize Endpoint https://{Github-app-domain}/oauth2/authorize
    OAuth Access Token Endpoint https://{Github-app-domain}/oauth2/token
    OAuth Get User Info Endpoint (optional) https://{Github-app-domain}/oauth2/userInfo
    Client ID This value can be obtained from the above steps
    Client secret This value can be obtained from the above steps
    Scope openid
  • Now you can click on Save.

Step 3. Test connection between miniOrange and Github

  • Go to the miniOrange Admin Dashboard.
  • Go to Identity Providers tab. Then click on select button under the app you just created. Then click on Test Connection.
  • A new popup login window will open. Enter your credentials and login.
  • Atlassian Access Cloud SSO (Single Sign-On) Add Member
  • Now you will see TEST SUCCESSFUL in a new popup window. If not, then check if you have missed any of the above step.