Managed secret providers
GitHub (API Key)
Connect GitHub to Alter Vault using a personal access token for secure API access
Overview
Section titled “Overview”Use GitHub credentials to make authenticated API calls through Alter Vault without exposing API keys in code.
| Property | Value |
|---|---|
| Provider ID | github |
| Category | Developer Tools |
| Credential Type | Bearer Token |
Step 1: Get Credentials
Section titled “Step 1: Get Credentials”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).
Step 2: Add to Alter Vault
Section titled “Step 2: Add to Alter Vault”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.
Using in Code
Section titled “Using in Code”response = await alter_app.request( HttpMethod.GET, "https://api.github.com/user/repos", grant_id="YOUR_GRANT_ID",)