JSON Web Tokens

Configure Auth0 as Identity Provider for GitHub Enterprise Server

These instructions explain how to configure Auth0 to serve as an Identity Provider for GitHub Enterprise Server (i.e. your private GitHub appliance).

Heads up! This article applies to GitHub Enterprise Server (deployed as a private instance). If you are looking for instructions to set up Auth0 as the identity provider for GitHub Enterprise Cloud (, check this page instead.

Use of JWTs

Configure the Addon: SAML2 Web App

Login to Auth0 dashboard and create a new Application. Give it a meaningful name like "GitHub". You can choose any application type really, but the "Regular Web App" type is the more representative.

Navigate to the Addons tab and enable the SAML2 Web App using the toggle switch.

Application Addons

The Settings window will be displayed. Set the following values:

  • Application SAMLCallback URL: {YOUR_GITHUB_SERVER_URL}/saml/consume

  • Settings:

Note: Make sure to replace {YOUR_GITHUB_SERVER_URL} with the URL assigned to your GitHub Server (i.e.

The above mapping will send the user_id as the Name Identifier to GitHub. This is a good option if you enable more than one connection for the GitHub application, as it will ensure uniqueness (every user will have a different ID). If you are using a single connection, you might prefer to use the nickname or another unique identifier as a friendlier Name Identifier (but make sure that the property you choose is indeed unique).

As an example, if you want nickname as the Name Identifier, the mappings section above will look like this:


Configure SAML Single Sign-on on GitHub

Follow the instruction from Using SAML on Enterprise Server- GitHub Help to complete the configuration on GitHub Enterprise Cloud. You will need the following information:

  • Sign On URL: https://YOUR_DOMAIN/samlp/{CLIENT_ID} {CLIENT_ID} will be the client_id for the GitHub application you just created in Auth0.
  • Issuer: urn:auth0:YOUR_TENANT
  • Verification Certificate: You will need to download it from https://YOUR_DOMAIN/pem and upload it in this field.
  • User Attributes: you should leave the defaults here, as the mapping that we configured in the OpenID Connect (OIDC) specsSAML Web App addon uses the default attribute names proposed by GitHub.
  • Signature method: RSA256-SHA256
  • Digest method: SHA256

The Sign On URL, Issuer and Certificate information can also be found in the Usage tab on the SAML Web App addon settings dialog:

Usage tab