Skip to content

Authenticating with a token generated by an app #22

@Nostromos

Description

@Nostromos

Set up as a Github App then use the app's client ID as username and app's client secret as password.

https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api?apiVersion=2022-11-28#authenticating-with-a-token-generated-by-an-app

example:

curl --request POST \
--url "https://api.github.com/applications/YOUR_CLIENT_ID/token" \
--user "YOUR_CLIENT_ID:YOUR_CLIENT_SECRET" \
--header "Accept: application/vnd.github+json" \
--header "X-GitHub-Api-Version: 2022-11-28" \
--data '{
  "access_token": "ACCESS_TOKEN_TO_CHECK"
}'
  1. In the upper-right corner of any page on GitHub, click your profile photo.
  2. Navigate to your account settings.
  • For an app owned by a personal account, click Settings.
  • For an app owned by an organization:
    • Click Your organizations.
    • To the right of the organization, click Settings.
  1. In the left sidebar, click Developer settings.
  2. In the left sidebar, click GitHub Apps or OAuth apps.
  3. For GitHub Apps, to the right of the GitHub App you want to access, click Edit. For OAuth apps, click the app that you want to access.
  4. Next to Client ID, you will see the client ID for your app.
  5. Next to Client secrets, click Generate a new client secret to generate a client secret for your app.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions