API Key Authentication
API Key authentication lets you send a custom header or query parameter with your API key.- Header-Based
- Query Parameter
Select API Key
Choose Placement
Configure Key and Value
- Key:
X-API-Key(or your API’s header name) - Value:
{{apiKey}}(use a variable for security)
X-API-Key: your-api-key-hereBearer Token Authentication
Bearer Token authentication is commonly used for JWT-based APIs and OAuth 2.0 access tokens.Select Bearer Token
Enter Token
{{accessToken}} for flexibility.Send Request
Authorization: Bearer <token> header.Basic Authentication
Basic Auth sends username and password credentials encoded in Base64.Select Basic Auth
Enter Credentials
- Username: Your username or
{{username}}variable - Password: Your password or
{{password}}variable
Automatic Encoding
OAuth 2.0 Authentication
LiteClient provides comprehensive OAuth 2.0 support with three grant types and automatic token management.Authorization Code Flow
Traditional OAuth 2.0 flow with browser-based authentication.Select OAuth 2.0
Choose Grant Type
Configure Endpoints
- Authorization URL: The provider’s authorization endpoint
- Token URL: The provider’s token endpoint
- Client ID: Your application’s client ID
- Client Secret: Your application’s client secret (if required)
- Redirect URI:
vscode://liteclienthq.liteclient/oauth2/callback - Scope: Space-separated scopes (e.g.,
read write)
Get Token
Authorize
Automatic Token Usage
Authorization Code with PKCE
Enhanced security flow for public clients (recommended for most use cases).Select PKCE Grant Type
Configure Endpoints
Get Token
Enhanced Security
Client Credentials Flow
Machine-to-machine authentication without user interaction.Select Client Credentials
Configure Credentials
- Token URL: The provider’s token endpoint
- Client ID: Your application’s client ID
- Client Secret: Your application’s client secret
- Scope: Optional scopes
- Audience: Optional audience parameter
Get Token
Use for Server-to-Server
Token Caching and Refresh
LiteClient automatically manages OAuth 2.0 tokens:- Secure Storage: Tokens are stored in VS Code’s SecretStorage (encrypted)
- Automatic Caching: Tokens are reused across requests until expiration
- Auto Refresh: When tokens expire, LiteClient automatically requests a new token using the refresh token (if available)
- Per-Configuration: Each OAuth 2.0 configuration maintains its own token cache
Using Variables in Authentication
All authentication types support variable substitution:- Use different credentials per environment
- Avoid hardcoding secrets in requests
- Share collections without exposing credentials
Best Practices
Use environment variables for credentials
Use environment variables for credentials
secret type to mask them in the UI.Use PKCE for OAuth 2.0
Use PKCE for OAuth 2.0
Separate credentials per environment
Separate credentials per environment
Never commit secrets to version control
Never commit secrets to version control
Use Client Credentials for backend services
Use Client Credentials for backend services