Integrations
Apps & Plugins Architecture
Apps & Plugins Architecture
Encryption at Rest
We use AES-256-CBC to encrypt sensitive credentials.
Implementation
import { createCipheriv } from 'crypto';
const algorithm = 'aes-256-cbc';
const key = Buffer.from(process.env.ENCRYPTION_KEY, 'hex');
export function encrypt(text) {
const iv = crypto.randomBytes(16);
const cipher = createCipheriv(algorithm, key, iv);
// ... returns { iv, content }
}
Connection Flow (OAuth)
shopify.com/oauth/authorize?scope=..../api/apps/callback/shopify with code.code for access_token.AppConnection.
