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.Remarque :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.
Avant de commencer
GitHub requirement: GitHub App configured to integrate with ServiceNow
Role required: No instance role required
Pourquoi et quand exécuter cette tâche
Complete these steps from your GitHub account. See Building GitHub Apps on the GitHub Developer site for instructions on creating and configuring custom applications.
Procédure
Generate the Java KeyStore certificate for GitHub
Generate a Java KeyStore (JKS) certificate for the JWT authentication.
Avant de commencer
Role required: admin
Procédure
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.
Avant de commencer
Ensure the availability of a valid Java KeyStore certificate.
Role required: admin
Procédure
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.
Avant de commencer
Role required: admin, sn_devops.admin
Procédure
Create a JWT provider for your GitHub signing key
Add a JSON Web Token (JWT) provider to your ServiceNow instance for GitHub.
Avant de commencer
Role required: admin, sn_devops.admin
Procédure
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.
Avant de commencer
Role required: admin, sn_devops.admin
Procédure
Create a credential record for GitHub App provider (JWT)
Create a credential record to the GitHub App provider previously created to authorize actions.
Avant de commencer
Role required: admin, sn_devops.admin