ghinstallation icon indicating copy to clipboard operation
ghinstallation copied to clipboard

Export the apps transport token

Open suhaibmujahid opened this issue 4 years ago • 2 comments

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.

suhaibmujahid avatar Mar 01 '21 16:03 suhaibmujahid

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.

suhaibmujahid avatar Mar 08 '21 21:03 suhaibmujahid

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.

suhaibmujahid avatar Mar 08 '21 22:03 suhaibmujahid