Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.alterauth.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Use GitHub credentials to make authenticated API calls through Alter Vault without exposing your API keys in code.
PropertyValue
Provider IDgithub
CategoryDeveloper Tools
Credential TypeBearer Token

Step 1: Get Your Credentials

1

Log in to GitHub

Log in to your GitHub account at github.com.
2

Go to Developer Settings → Personal access tokens

3

Choose token type

Choose ‘Fine-grained tokens’ (recommended) or ‘Tokens (classic)’.
4

Generate a new token

Click ‘Generate new token’ and configure scopes.
5

Copy your token

Copy the generated token (it won’t be shown again).
Never share your credentials publicly. Store them securely and only enter them in the Alter Vault Developer Portal.

Step 2: Add to Alter Vault

1

Open the Developer Portal

Go to portal.alterauth.com and navigate to your app.
2

Add GitHub

Go to Managed Secrets > Add Provider > GitHub.
3

Enter your credentials

Paste your Personal Access Token into the credential field.
4

Save

Click Save. You’ll receive a grant_id to use with the SDK.

Using in Code

response = await vault.request(
    HttpMethod.GET,
    "https://api.github.com/user/repos",
    grant_id="YOUR_GRANT_ID",
)