Skip to content

JWT generation as a Github app #49521

Discussion options

You must be logged in to vote

Hi Sayed,
Thanks for the reply.

I was able to fix the problem.

It was not with the way I was reading the file and JWT token generation was fine. I had to do an extra step of passing the generated token to the GitHub installations API for fetching the access token. Which will be used to authenticate with GitHub as an app.

You can follow the below link to see the steps.

https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-an-installation-access-token-for-a-github-app#generating-an-installation-access-token

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@aneelmonangi
Comment options

@MayankMadan97
Comment options

@aneelmonangi
Comment options

@MayankMadan97
Comment options

@aneelmonangi
Comment options

Answer selected by MayankMadan97
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API and Webhooks Discussions and conversations related to APIs or Webhooks Question
3 participants