Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 3

Get JWS having a GitHub App


I need to make calls to the GitHub API as an APP, so I set up a GitHub APP on my account.

So now I have the app id and key secret.

I need to retrieve the JWS token so I can authenticate on the calls.


I read this section of the documentation:

but I only see an example that apply for Ruby.

For example, I need to know the URL to make the callout so I can get the JWS token.


Does anyone knows how to retrieve a JWS token?




2 Replies
Community Manager
Message 2 of 3

Re: Get JWS having a GitHub App

It's probably best to use a library to do this for whatever language you're using. What language or framework are you intending to use to develop your GitHub App?

Copilot Lvl 2
Message 3 of 3

Re: Get JWS having a GitHub App

@lee-dohm Thanks for the reply, finally I could figure out how to make the JWT token:

 My problem was that I was ommiting the specification of the claim "iat" that specifies the date that the token was requested.

The json of the header is the follow:

"iat": 1234567890,
"exp": 1516239022,
"iss": "123456"

iat is an integer representing the actual date

exp is the expiration date of the token

iss is the app id of the GitHub App