Authentication
Managing Secrets and Environment Variables
Using the env.yaml File
# ~/.sling/env.yaml
connections:
my_api:
type: api
spec: file:///path/to/my_api.spec.yaml
secrets:
api_key: "your-secret-api-key"
client_id: "your-oauth-client-id"
client_secret: "your-oauth-client-secret"
username: "your-username"
password: "your-password"
github_api:
type: api
spec: github
secrets:
token: "ghp_xxxxxxxxxxxxxxxxxxxx"
stripe_api:
type: api
spec: stripe
secrets:
api_key: "sk_test_xxxxxxxxxxxxxxxxxxxx"Using Environment Variables
Authentication Methods
No Authentication
Static Header Authentication
Basic Auth
OAuth2 Authentication
Flow
Use Case
Interactive
AWS Signature V4 Authentication
HMAC Authentication
Sequence Authentication (Custom Workflows)
Endpoint-Level Authentication
Overriding Authentication
Disabling Authentication
Authentication Expiry
Authentication Method Comparison
Method
Best For
Auto-Refresh
Interactive
Last updated
Was this helpful?