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.Hinweis: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.
Vorbereitungen
GitHub requirement: GitHub App configured to integrate with ServiceNow
Role required: No instance role required
Warum und wann dieser Vorgang ausgeführt wird
Complete these steps from your GitHub account. See Building GitHub Apps on the GitHub Developer site for instructions on creating and configuring custom applications.
Prozedur
Generate the Java KeyStore certificate for GitHub
Generate a Java KeyStore (JKS) certificate for the JWT authentication.
Vorbereitungen
Role required: admin
Prozedur
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.
Vorbereitungen
Ensure the availability of a valid Java KeyStore certificate.
Role required: admin
Prozedur
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.
Vorbereitungen
Role required: admin, sn_devops.admin
Prozedur
Create a JWT provider for your GitHub signing key
Add a JSON Web Token (JWT) provider to your ServiceNow instance for GitHub.
Vorbereitungen
Role required: admin, sn_devops.admin
Prozedur
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.
Vorbereitungen
Role required: admin, sn_devops.admin
Prozedur
Create a credential record for GitHub App provider (JWT)
Create a credential record to the GitHub App provider previously created to authorize actions.
Vorbereitungen
Role required: admin, sn_devops.admin