ghinstallation
ghinstallation copied to clipboard
Export the apps transport token
This PR exports a function that generates the Github Apps JWT signed string. This will be useful when the client needs to manually authenticate a request using the App token (not the installation token).
This pull request also fixes #37 by a downgrade to the stable versions of jwt-go
. Also, it solves part of #41 where it solves an incompatible update with jwt-go
.
BTW, based on my tests, I got an authentication error from Github when using jwt-go
v4. For that, I included a downgrade to v3 in this PR.
From jwt-go
's Readme file:
If you depend on this library and don't want to be interrupted, I recommend you use your dependency mangement tool to pin to version 3.