docs icon indicating copy to clipboard operation
docs copied to clipboard

bash instructions for creating jwt for github app do not work with client id but work with app id

Open paololazzari opened this issue 1 year ago • 2 comments

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-json-web-token-jwt-for-a-github-app#example-using-bash-to-generate-a-jwt

What part(s) of the article would you like to see updated?

Running the script with the client id results in a token which when used throws the following error:

{
  "message": "A JSON web token could not be decoded",
  "documentation_url": "https://docs.github.com/rest",
  "status": "401"
}

Running the script with the app id results in a valid token.

paololazzari avatar Jul 16 '24 09:07 paololazzari

Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

welcome[bot] avatar Jul 16 '24 09:07 welcome[bot]

@paololazzari Thanks so much for opening a PR! I'll get this triaged for review ✨

nguyenalex836 avatar Jul 17 '24 20:07 nguyenalex836

Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert :eyes:

github-actions[bot] avatar Aug 22 '24 14:08 github-actions[bot]

@paololazzari Apologies for the delay! We recently merged https://github.com/github/docs/pull/33859 that I believe resolves the problem this issue is raising. Many apologies for not being able to get to this sooner 💛

I'll go ahead and close out this issue - thank you!

nguyenalex836 avatar Aug 26 '24 18:08 nguyenalex836