salesloft-security-basics

Featured

Secure SalesLoft OAuth tokens, API keys, and webhook signatures. Use when implementing token rotation, securing webhook endpoints, or auditing SalesLoft API access controls. Trigger: "salesloft security", "salesloft secrets", "secure salesloft", "salesloft token rotation".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# SalesLoft Security Basics ## Overview Secure SalesLoft API integrations: OAuth token management, webhook signature verification, secret storage, and scope-based access control. SalesLoft uses OAuth 2.0 bearer tokens and HMAC-SHA256 webhook signatures. ## Instructions ### Step 1: Secret Storage ```bash # .gitignore -- NEVER commit credentials .env .env.local .env.*.local # .env SALESLOFT_CLIENT_ID=app-client-id SALESLOFT_CLIENT_SECRET=app-secret SALESLOFT_WEBHOOK_SECRET=webhook-signing-secret ``` ```typescript // Validate secrets at startup const required = ['SALESLOFT_CLIENT_ID', 'SALESLOFT_CLIENT_SECRET']; for (const key of required) { if (!process.env[key]) throw new Error(`Missing required env: ${key}`); } ``` ### Step 2: Token Lifecycle Management ```typescript // Store tokens securely with expiry tracking interface TokenStore { accessToken: string; refreshToken: string; expiresAt: number; // Unix timestamp } async function getValidToken(store: TokenStore): Promise<string> { // Refresh 5 minutes before expiry if (Date.now() > (store.expiresAt - 300) * 1000) { const refreshed = await refreshAccessToken(store.refreshToken); store.accessToken = refreshed.access_token; store.refreshToken = refreshed.refresh_token; store.expiresAt = Math.floor(Date.now() / 1000) + refreshed.expires_in; await persistTokenStore(store); // Save to DB or secret manager } return store.accessToken; } ``` ### Step 3: Webhook Signature Verification ```...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category