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
Following the instructions in the readme makes it impossible to get the AppsService calls work. I work around the issue by creating a separate client for apps calls using the AppsTransport, and using the other installation Transport to make all other calls.
It would be great if one could create single client using the correct auth method depending on the call.
I'm not sure this is something that should be handled in ghinstallation - this library itself isn't actually aware of the API calls being made beyond the get installation token method.
What's nice about this is that ghinstallation doesn't need to be updated for any new API calls.
I'm also not sure if there are endpoints that can be authenticated with both a JWT or installation token, which could make knowing the auth method to use ambiguous in certain cases based on URL path alone.
It probably makes more sense to make this type of decision in the client (e.g. go-github) where we know for certain what token we need to use.
Almost all operations in githubClient require installation access token, except calls made by AppsService which require JWT.
Following the instructions in the readme makes it impossible to get the AppsService calls work. I work around the issue by creating a separate client for apps calls using the
AppsTransport
, and using the other installationTransport
to make all other calls.It would be great if one could create single client using the correct auth method depending on the call.
My workaround:
The text was updated successfully, but these errors were encountered: