OAuth 2.0 credentials for GitHub Apps - JWT
Perform the following steps to integrate your GitHub Apps using the JWT bearer token.
Before you begin
Role required:
- oauth_admin in DevOps Change Velocity.
- Admin account in GitHub.Nota:The OAuth 2.0 JWT grant type is supported for GitHub & GitHub Enterprise with MID server.
Configure the GitHub App in your GitHub account (JWT)
Create a custom GitHub App from your GitHub account to enable OAuth 2.0 authentication with your ServiceNow instance.
Antes de Iniciar
GitHub requirement: GitHub App configured to integrate with ServiceNow
Role required: No instance role required
Por Que e Quando Desempenhar Esta Tarefa
Complete these steps from your GitHub account. See Building GitHub Apps on the GitHub Developer site for instructions on creating and configuring custom applications.
Procedimento
Generate the Java KeyStore certificate for GitHub
Generate a Java KeyStore (JKS) certificate for the JWT authentication.
Antes de Iniciar
Role required: admin
Procedimento
Attach the GitHub Java KeyStore certificate to your instance
Enable the JWT Bearer Grant token authentication by attaching the valid GitHub Java KeyStore (JKS) certificate to your ServiceNow instance.
Antes de Iniciar
Ensure the availability of a valid Java KeyStore certificate.
Role required: admin
Procedimento
Create a JWT signing key for the GitHub JKS certificate
Create a JSON Web Token (JWT) signing key to assign to your GitHub Java KeyStore certificate.
Antes de Iniciar
Role required: admin, sn_devops.admin
Procedimento
Create a JWT provider for your GitHub signing key
Add a JSON Web Token (JWT) provider to your ServiceNow instance for GitHub.
Antes de Iniciar
Role required: admin, sn_devops.admin
Procedimento
Register GitHub as an OAuth Provider (JWT)
Use the information generated during GitHub App account configuration to register GitHub as an OAuth provider and allow the instance to request OAuth 2.0 tokens.
Antes de Iniciar
Role required: admin, sn_devops.admin
Procedimento
Create a credential record for GitHub App provider (JWT)
Create a credential record to the GitHub App provider previously created to authorize actions.
Antes de Iniciar
Role required: admin, sn_devops.admin