You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reason:
In a fresh python installation the python script for getting a JWT in the article needs both the 'PyJWT' and the 'cryptography' pip packages installed.
Can be verified using a fresh docker python:3-alpine image:
docker run -v $(pwd):/app -w /app python:3-alpine \
sh -c 'pip install PyJWT; python githubJwt.py ghapp.private-key.pem CLIENT_ID'
The command above will throw an error: NotImplementedError: Algorithm 'RS256' could not be found. Do you have cryptography installed?
If you add the cryptography package to the pip install line, the same script invocation works:
docker run -v $(pwd):/app -w /app python:3-alpine \
sh -c 'pip install PyJWT cryptography; python githubJwt.py ghapp.private-key.pem CLIENT_ID'
Additional information
No response
The text was updated successfully, but these errors were encountered:
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.
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
What part(s) of the article would you like to see updated?
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-python-to-generate-a-jwt
Reason:
In a fresh python installation the python script for getting a JWT in the article needs both the 'PyJWT' and the 'cryptography' pip packages installed.
Can be verified using a fresh docker python:3-alpine image:
The command above will throw an error:
NotImplementedError: Algorithm 'RS256' could not be found. Do you have cryptography installed?
If you add the cryptography package to the pip install line, the same script invocation works:
Additional information
No response
The text was updated successfully, but these errors were encountered: