Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export the apps transport token #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

suhaibmujahid
Copy link
Contributor

@suhaibmujahid suhaibmujahid commented Mar 1, 2021

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant