Skip to content

Managed secret providers

GitHub (API Key)

Connect GitHub to Alter Vault using a personal access token for secure API access

Use GitHub credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Provider IDgithub
CategoryDeveloper Tools
Credential TypeBearer Token

Log in to GitHub

Log in to your GitHub account at github.com.

Go to Developer Settings → Personal access tokens

Choose token type

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

Generate a new token

Click ‘Generate new token’ and configure scopes.

Copy your token

Copy the generated token (it won’t be shown again).

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add GitHub

Go to Managed Secrets > Add Provider > GitHub.

Enter credentials

Paste your Personal Access Token into the credential field.

Save

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

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