@robinpath/auth
Advanced tools
| /** | ||
| * RobinPath Auth Module (Node port) | ||
| * | ||
| * HTTP authentication header builders and helpers — Basic, Bearer, API key, | ||
| * HMAC sign/verify, PBKDF2 password hashing, and generic Authorization | ||
| * header build/parse. These are pure helpers that shape values for other | ||
| * modules (e.g. `http`, `fetch`) to send on the wire. This module does not | ||
| * make HTTP requests and does not store credentials itself; hence | ||
| * `credentialsType: null`. | ||
| * | ||
| * Exposes `configureAuth(host)` for parity; the host reference is unused. | ||
| */ | ||
| import type { BuiltinHandler, FunctionMetadata, ModuleHost, ModuleMetadata } from "@robinpath/core"; | ||
| export declare function configureAuth(h: ModuleHost): void; | ||
| export declare const AuthFunctions: Record<string, BuiltinHandler>; | ||
| export declare const AuthFunctionMetadata: Record<string, FunctionMetadata>; | ||
| export declare const AuthModuleMetadata: ModuleMetadata; | ||
| //# sourceMappingURL=auth.d.ts.map |
| {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAMzB,wBAAgB,aAAa,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI,CAEjD;AAgLD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAaxD,CAAC;AAgBF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAwejE,CAAC;AAIF,eAAO,MAAM,kBAAkB,EAAE,cAiDhC,CAAC"} |
+728
| /** | ||
| * RobinPath Auth Module (Node port) | ||
| * | ||
| * HTTP authentication header builders and helpers — Basic, Bearer, API key, | ||
| * HMAC sign/verify, PBKDF2 password hashing, and generic Authorization | ||
| * header build/parse. These are pure helpers that shape values for other | ||
| * modules (e.g. `http`, `fetch`) to send on the wire. This module does not | ||
| * make HTTP requests and does not store credentials itself; hence | ||
| * `credentialsType: null`. | ||
| * | ||
| * Exposes `configureAuth(host)` for parity; the host reference is unused. | ||
| */ | ||
| import { createHmac, timingSafeEqual, randomBytes } from "node:crypto"; | ||
| // ── Module-local state (populated by configure hook) ──────────────────── | ||
| const state = {}; | ||
| export function configureAuth(h) { | ||
| state.host = h; | ||
| } | ||
| // ── Handlers ──────────────────────────────────────────────────────────── | ||
| const basic = (args) => { | ||
| const username = String(args[0] ?? ""); | ||
| const password = String(args[1] ?? ""); | ||
| const encoded = Buffer.from(`${username}:${password}`).toString("base64"); | ||
| return `Basic ${encoded}`; | ||
| }; | ||
| const parseBasic = (args) => { | ||
| const header = String(args[0] ?? ""); | ||
| const match = header.match(/^Basic\s+(.+)$/i); | ||
| if (!match) | ||
| throw new Error("Invalid Basic auth header"); | ||
| const decoded = Buffer.from(match[1], "base64").toString("utf-8"); | ||
| const colonIndex = decoded.indexOf(":"); | ||
| if (colonIndex === -1) | ||
| throw new Error("Invalid Basic auth credentials"); | ||
| return { | ||
| username: decoded.substring(0, colonIndex), | ||
| password: decoded.substring(colonIndex + 1), | ||
| }; | ||
| }; | ||
| const bearer = (args) => { | ||
| const token = String(args[0] ?? ""); | ||
| return `Bearer ${token}`; | ||
| }; | ||
| const parseBearer = (args) => { | ||
| const header = String(args[0] ?? ""); | ||
| const match = header.match(/^Bearer\s+(.+)$/i); | ||
| if (!match) | ||
| throw new Error("Invalid Bearer auth header"); | ||
| return match[1]; | ||
| }; | ||
| const apiKey = (args) => { | ||
| const key = String(args[0] ?? ""); | ||
| const placement = String(args[1] ?? "header"); | ||
| const name = String(args[2] ?? "X-API-Key"); | ||
| if (placement === "header") { | ||
| return { type: "header", name, value: key }; | ||
| } | ||
| if (placement === "query") { | ||
| return { type: "query", name, value: key }; | ||
| } | ||
| throw new Error(`Invalid placement: "${placement}". Use "header" or "query".`); | ||
| }; | ||
| const hmacSign = (args) => { | ||
| const payload = String(args[0] ?? ""); | ||
| const secret = String(args[1] ?? ""); | ||
| const algorithm = String(args[2] ?? "sha256"); | ||
| return createHmac(algorithm, secret).update(payload).digest("hex"); | ||
| }; | ||
| const hmacVerify = (args) => { | ||
| const payload = String(args[0] ?? ""); | ||
| const secret = String(args[1] ?? ""); | ||
| const signature = String(args[2] ?? ""); | ||
| const algorithm = String(args[3] ?? "sha256"); | ||
| const expected = createHmac(algorithm, secret).update(payload).digest("hex"); | ||
| if (expected.length !== signature.length) | ||
| return false; | ||
| try { | ||
| return timingSafeEqual(Buffer.from(expected, "hex"), Buffer.from(signature, "hex")); | ||
| } | ||
| catch { | ||
| return false; | ||
| } | ||
| }; | ||
| const generateApiKey = (args) => { | ||
| const length = parseInt(String(args[0] ?? "32"), 10); | ||
| const prefix = args[1] != null ? String(args[1]) : ""; | ||
| const key = randomBytes(length).toString("hex"); | ||
| return prefix ? `${prefix}_${key}` : key; | ||
| }; | ||
| const hashPassword = async (args) => { | ||
| const password = String(args[0] ?? ""); | ||
| const salt = randomBytes(16).toString("hex"); | ||
| const iterations = parseInt(String(args[1] ?? "100000"), 10); | ||
| const { pbkdf2 } = await import("node:crypto"); | ||
| return new Promise((resolve, reject) => { | ||
| pbkdf2(password, salt, iterations, 64, "sha512", (err, derivedKey) => { | ||
| if (err) | ||
| reject(err); | ||
| else | ||
| resolve(`${salt}:${iterations}:${derivedKey.toString("hex")}`); | ||
| }); | ||
| }); | ||
| }; | ||
| const verifyPassword = async (args) => { | ||
| const password = String(args[0] ?? ""); | ||
| const hash = String(args[1] ?? ""); | ||
| const parts = hash.split(":"); | ||
| if (parts.length !== 3) { | ||
| throw new Error("Invalid hash format. Expected salt:iterations:hash"); | ||
| } | ||
| const [salt, iterStr, storedHash] = parts; | ||
| const iterations = parseInt(iterStr, 10); | ||
| const { pbkdf2 } = await import("node:crypto"); | ||
| return new Promise((resolve, reject) => { | ||
| pbkdf2(password, salt, iterations, 64, "sha512", (err, derivedKey) => { | ||
| if (err) | ||
| reject(err); | ||
| else { | ||
| const derived = derivedKey.toString("hex"); | ||
| try { | ||
| resolve(timingSafeEqual(Buffer.from(derived), Buffer.from(storedHash))); | ||
| } | ||
| catch { | ||
| resolve(false); | ||
| } | ||
| } | ||
| }); | ||
| }); | ||
| }; | ||
| const buildAuthHeader = (args) => { | ||
| const type = String(args[0] ?? "").toLowerCase(); | ||
| const value = args[1]; | ||
| switch (type) { | ||
| case "basic": { | ||
| const creds = value; | ||
| if (typeof creds === "string") { | ||
| return `Basic ${Buffer.from(creds).toString("base64")}`; | ||
| } | ||
| return `Basic ${Buffer.from(`${creds.username ?? ""}:${creds.password ?? ""}`).toString("base64")}`; | ||
| } | ||
| case "bearer": | ||
| return `Bearer ${String(value ?? "")}`; | ||
| case "apikey": | ||
| case "api-key": | ||
| return String(value ?? ""); | ||
| default: | ||
| return `${type} ${String(value ?? "")}`; | ||
| } | ||
| }; | ||
| const parseAuthHeader = (args) => { | ||
| const header = String(args[0] ?? ""); | ||
| const spaceIndex = header.indexOf(" "); | ||
| if (spaceIndex === -1) | ||
| return { scheme: header.toLowerCase(), credentials: "" }; | ||
| const scheme = header.substring(0, spaceIndex).toLowerCase(); | ||
| const credentials = header.substring(spaceIndex + 1); | ||
| if (scheme === "basic") { | ||
| try { | ||
| const decoded = Buffer.from(credentials, "base64").toString("utf-8"); | ||
| const colonIndex = decoded.indexOf(":"); | ||
| return { | ||
| scheme, | ||
| username: colonIndex >= 0 ? decoded.substring(0, colonIndex) : decoded, | ||
| password: colonIndex >= 0 ? decoded.substring(colonIndex + 1) : "", | ||
| }; | ||
| } | ||
| catch { | ||
| return { scheme, credentials }; | ||
| } | ||
| } | ||
| return { scheme, token: credentials }; | ||
| }; | ||
| // ── Exports: functions map ────────────────────────────────────────────── | ||
| export const AuthFunctions = { | ||
| basic, | ||
| parseBasic, | ||
| bearer, | ||
| parseBearer, | ||
| apiKey, | ||
| hmacSign, | ||
| hmacVerify, | ||
| generateApiKey, | ||
| hashPassword, | ||
| verifyPassword, | ||
| buildAuthHeader, | ||
| parseAuthHeader, | ||
| }; | ||
| // ── Shared parameter descriptors ──────────────────────────────────────── | ||
| const headerParam = { | ||
| name: "header", | ||
| title: "Header value", | ||
| description: "The Authorization header value.", | ||
| dataType: "string", | ||
| formInputType: "text", | ||
| required: true, | ||
| allowExpression: true, | ||
| }; | ||
| // ── Exports: function metadata ────────────────────────────────────────── | ||
| export const AuthFunctionMetadata = { | ||
| basic: { | ||
| title: "Basic auth header", | ||
| summary: "Create a Basic authentication header", | ||
| description: "Produces a `Basic <base64(user:pass)>` header value suitable for the HTTP Authorization header.", | ||
| group: "basic", | ||
| action: "read", | ||
| icon: "key", | ||
| capability: "read", | ||
| sideEffects: [], | ||
| idempotent: true, | ||
| since: "1.0.0", | ||
| tags: ["auth", "basic", "http"], | ||
| parameters: [ | ||
| { | ||
| name: "username", | ||
| title: "Username", | ||
| description: "Username.", | ||
| dataType: "string", | ||
| formInputType: "text", | ||
| required: true, | ||
| allowExpression: true, | ||
| }, | ||
| { | ||
| name: "password", | ||
| title: "Password", | ||
| description: "Password.", | ||
| dataType: "string", | ||
| formInputType: "password", | ||
| required: true, | ||
| allowExpression: true, | ||
| }, | ||
| ], | ||
| returnType: "string", | ||
| returnDescription: "Basic auth header string (e.g. 'Basic dXNlcjpwYXNz').", | ||
| errors: {}, | ||
| examples: [{ title: "Build header", code: 'auth.basic "user" "pass"' }], | ||
| example: 'auth.basic "user" "pass"', | ||
| }, | ||
| parseBasic: { | ||
| title: "Parse Basic header", | ||
| summary: "Parse a Basic auth header into {username, password}", | ||
| description: "Decodes the base64 credentials half of a Basic header.", | ||
| group: "basic", | ||
| action: "read", | ||
| icon: "key", | ||
| capability: "read", | ||
| sideEffects: [], | ||
| idempotent: true, | ||
| since: "1.0.0", | ||
| tags: ["auth", "basic", "parse", "http"], | ||
| parameters: [headerParam], | ||
| returnType: "object", | ||
| returnDescription: "Object with username and password.", | ||
| errors: { | ||
| invalid_header: "Header is not a well-formed Basic auth header.", | ||
| }, | ||
| examples: [ | ||
| { title: "Parse", code: 'auth.parseBasic "Basic dXNlcjpwYXNz"' }, | ||
| ], | ||
| example: 'auth.parseBasic "Basic dXNlcjpwYXNz"', | ||
| }, | ||
| bearer: { | ||
| title: "Bearer auth header", | ||
| summary: "Create a Bearer authentication header", | ||
| description: "Returns the string `Bearer <token>`.", | ||
| group: "bearer", | ||
| action: "read", | ||
| icon: "key", | ||
| capability: "read", | ||
| sideEffects: [], | ||
| idempotent: true, | ||
| since: "1.0.0", | ||
| tags: ["auth", "bearer", "http"], | ||
| parameters: [ | ||
| { | ||
| name: "token", | ||
| title: "Token", | ||
| description: "The bearer token.", | ||
| dataType: "string", | ||
| formInputType: "password", | ||
| required: true, | ||
| allowExpression: true, | ||
| }, | ||
| ], | ||
| returnType: "string", | ||
| returnDescription: "Bearer auth header string.", | ||
| errors: {}, | ||
| examples: [{ title: "Build header", code: 'auth.bearer "eyJhbGciOi..."' }], | ||
| example: 'auth.bearer "eyJhbGciOi..."', | ||
| }, | ||
| parseBearer: { | ||
| title: "Parse Bearer header", | ||
| summary: "Extract the token from a Bearer auth header", | ||
| description: "Returns the token portion of a `Bearer <token>` header.", | ||
| group: "bearer", | ||
| action: "read", | ||
| icon: "key", | ||
| capability: "read", | ||
| sideEffects: [], | ||
| idempotent: true, | ||
| since: "1.0.0", | ||
| tags: ["auth", "bearer", "parse", "http"], | ||
| parameters: [headerParam], | ||
| returnType: "string", | ||
| returnDescription: "Extracted token string.", | ||
| errors: { | ||
| invalid_header: "Header is not a well-formed Bearer header.", | ||
| }, | ||
| examples: [ | ||
| { title: "Parse", code: 'auth.parseBearer "Bearer eyJhbGciOi..."' }, | ||
| ], | ||
| example: 'auth.parseBearer "Bearer eyJhbGciOi..."', | ||
| }, | ||
| apiKey: { | ||
| title: "API key descriptor", | ||
| summary: "Create an API key config for header or query placement", | ||
| description: "Returns a descriptor `{type, name, value}` that HTTP clients can use to place the key either in a header or query parameter.", | ||
| group: "apikey", | ||
| action: "read", | ||
| icon: "key", | ||
| capability: "read", | ||
| sideEffects: [], | ||
| idempotent: true, | ||
| since: "1.0.0", | ||
| tags: ["auth", "apikey", "http"], | ||
| parameters: [ | ||
| { | ||
| name: "key", | ||
| title: "API key", | ||
| description: "The API key value.", | ||
| dataType: "string", | ||
| formInputType: "password", | ||
| required: true, | ||
| allowExpression: true, | ||
| }, | ||
| { | ||
| name: "placement", | ||
| title: "Placement", | ||
| description: "Either 'header' or 'query' (default: header).", | ||
| dataType: "string", | ||
| formInputType: "text", | ||
| required: false, | ||
| defaultValue: "header", | ||
| allowExpression: true, | ||
| advanced: true, | ||
| }, | ||
| { | ||
| name: "name", | ||
| title: "Field name", | ||
| description: "Header or query param name (default: X-API-Key).", | ||
| dataType: "string", | ||
| formInputType: "text", | ||
| required: false, | ||
| defaultValue: "X-API-Key", | ||
| allowExpression: true, | ||
| advanced: true, | ||
| }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "{type, name, value} descriptor.", | ||
| errors: { | ||
| invalid_placement: "placement must be 'header' or 'query'.", | ||
| }, | ||
| examples: [ | ||
| { | ||
| title: "Header placement", | ||
| code: 'auth.apiKey "sk-abc123" "header" "Authorization"', | ||
| }, | ||
| ], | ||
| example: 'auth.apiKey "sk-abc123" "header" "Authorization"', | ||
| }, | ||
| hmacSign: { | ||
| title: "HMAC sign", | ||
| summary: "Create an HMAC signature for a payload", | ||
| description: "Returns the hex-encoded HMAC signature of the payload using the supplied key and algorithm.", | ||
| group: "hmac", | ||
| action: "read", | ||
| icon: "shield", | ||
| capability: "read", | ||
| sideEffects: [], | ||
| idempotent: true, | ||
| since: "1.0.0", | ||
| tags: ["auth", "hmac", "signature", "webhook"], | ||
| parameters: [ | ||
| { | ||
| name: "payload", | ||
| title: "Payload", | ||
| description: "The payload to sign.", | ||
| dataType: "string", | ||
| formInputType: "textarea", | ||
| required: true, | ||
| allowExpression: true, | ||
| rows: 3, | ||
| }, | ||
| { | ||
| name: "secret", | ||
| title: "Secret", | ||
| description: "The secret key.", | ||
| dataType: "string", | ||
| formInputType: "password", | ||
| required: true, | ||
| allowExpression: true, | ||
| }, | ||
| { | ||
| name: "algorithm", | ||
| title: "Algorithm", | ||
| description: "Hash algorithm (default: sha256).", | ||
| dataType: "string", | ||
| formInputType: "text", | ||
| required: false, | ||
| defaultValue: "sha256", | ||
| allowExpression: true, | ||
| advanced: true, | ||
| }, | ||
| ], | ||
| returnType: "string", | ||
| returnDescription: "Hex-encoded HMAC signature.", | ||
| errors: {}, | ||
| examples: [ | ||
| { title: "Sign", code: 'auth.hmacSign "payload" "secret" "sha256"' }, | ||
| ], | ||
| example: 'auth.hmacSign "payload" "secret" "sha256"', | ||
| }, | ||
| hmacVerify: { | ||
| title: "HMAC verify", | ||
| summary: "Verify an HMAC signature using timing-safe comparison", | ||
| description: "Recomputes the HMAC of the payload and compares it to the provided signature in constant time.", | ||
| group: "hmac", | ||
| action: "read", | ||
| icon: "shield-check", | ||
| capability: "read", | ||
| sideEffects: [], | ||
| idempotent: true, | ||
| since: "1.0.0", | ||
| tags: ["auth", "hmac", "verify", "webhook"], | ||
| parameters: [ | ||
| { | ||
| name: "payload", | ||
| title: "Payload", | ||
| description: "The original payload.", | ||
| dataType: "string", | ||
| formInputType: "textarea", | ||
| required: true, | ||
| allowExpression: true, | ||
| rows: 3, | ||
| }, | ||
| { | ||
| name: "secret", | ||
| title: "Secret", | ||
| description: "The secret key.", | ||
| dataType: "string", | ||
| formInputType: "password", | ||
| required: true, | ||
| allowExpression: true, | ||
| }, | ||
| { | ||
| name: "signature", | ||
| title: "Signature", | ||
| description: "The hex signature to verify.", | ||
| dataType: "string", | ||
| formInputType: "text", | ||
| required: true, | ||
| allowExpression: true, | ||
| }, | ||
| { | ||
| name: "algorithm", | ||
| title: "Algorithm", | ||
| description: "Hash algorithm (default: sha256).", | ||
| dataType: "string", | ||
| formInputType: "text", | ||
| required: false, | ||
| defaultValue: "sha256", | ||
| allowExpression: true, | ||
| advanced: true, | ||
| }, | ||
| ], | ||
| returnType: "boolean", | ||
| returnDescription: "True if the signature is valid.", | ||
| errors: {}, | ||
| examples: [ | ||
| { | ||
| title: "Verify", | ||
| code: 'auth.hmacVerify "payload" "secret" $signature', | ||
| }, | ||
| ], | ||
| example: 'auth.hmacVerify "payload" "secret" "abc123def..."', | ||
| }, | ||
| generateApiKey: { | ||
| title: "Generate API key", | ||
| summary: "Generate a cryptographically secure random API key", | ||
| description: "Uses crypto.randomBytes to produce a hex-encoded key. Optional prefix prepended with an underscore.", | ||
| group: "apikey", | ||
| action: "read", | ||
| icon: "sparkles", | ||
| capability: "read", | ||
| sideEffects: [], | ||
| idempotent: false, | ||
| since: "1.0.0", | ||
| tags: ["auth", "apikey", "generate", "random"], | ||
| parameters: [ | ||
| { | ||
| name: "length", | ||
| title: "Length (bytes)", | ||
| description: "Key length in bytes (default 32).", | ||
| dataType: "number", | ||
| formInputType: "number", | ||
| required: false, | ||
| defaultValue: 32, | ||
| allowExpression: true, | ||
| }, | ||
| { | ||
| name: "prefix", | ||
| title: "Prefix", | ||
| description: "Optional prefix (e.g. 'sk', 'pk').", | ||
| dataType: "string", | ||
| formInputType: "text", | ||
| required: false, | ||
| allowExpression: true, | ||
| placeholder: "sk", | ||
| }, | ||
| ], | ||
| returnType: "string", | ||
| returnDescription: "Random hex API key, optionally prefixed.", | ||
| errors: {}, | ||
| examples: [ | ||
| { title: "With prefix", code: 'auth.generateApiKey 32 "sk"' }, | ||
| ], | ||
| example: 'auth.generateApiKey 32 "sk"', | ||
| }, | ||
| hashPassword: { | ||
| title: "Hash password", | ||
| summary: "Hash a password using PBKDF2-SHA512 with a random salt", | ||
| description: "Returns a string in `salt:iterations:hash` format suitable for persistence. Defaults to 100 000 iterations.", | ||
| group: "password", | ||
| action: "read", | ||
| icon: "lock", | ||
| capability: "read", | ||
| sideEffects: [], | ||
| idempotent: false, | ||
| since: "1.0.0", | ||
| tags: ["auth", "password", "pbkdf2", "hash"], | ||
| parameters: [ | ||
| { | ||
| name: "password", | ||
| title: "Password", | ||
| description: "The password to hash.", | ||
| dataType: "string", | ||
| formInputType: "password", | ||
| required: true, | ||
| allowExpression: true, | ||
| }, | ||
| { | ||
| name: "iterations", | ||
| title: "Iterations", | ||
| description: "PBKDF2 iterations (default 100000).", | ||
| dataType: "number", | ||
| formInputType: "number", | ||
| required: false, | ||
| defaultValue: 100000, | ||
| allowExpression: true, | ||
| advanced: true, | ||
| }, | ||
| ], | ||
| returnType: "string", | ||
| returnDescription: "Hash string in format salt:iterations:hash.", | ||
| errors: {}, | ||
| examples: [ | ||
| { title: "Hash", code: 'auth.hashPassword "my-secret-password"' }, | ||
| ], | ||
| example: 'auth.hashPassword "my-secret-password"', | ||
| }, | ||
| verifyPassword: { | ||
| title: "Verify password", | ||
| summary: "Verify a password against a PBKDF2 hash (timing-safe)", | ||
| description: "Compares the password-derived key to the stored hash in constant time.", | ||
| group: "password", | ||
| action: "read", | ||
| icon: "lock-check", | ||
| capability: "read", | ||
| sideEffects: [], | ||
| idempotent: true, | ||
| since: "1.0.0", | ||
| tags: ["auth", "password", "pbkdf2", "verify"], | ||
| parameters: [ | ||
| { | ||
| name: "password", | ||
| title: "Password", | ||
| description: "The password to verify.", | ||
| dataType: "string", | ||
| formInputType: "password", | ||
| required: true, | ||
| allowExpression: true, | ||
| }, | ||
| { | ||
| name: "hash", | ||
| title: "Stored hash", | ||
| description: "The stored hash (salt:iterations:hash).", | ||
| dataType: "string", | ||
| formInputType: "text", | ||
| required: true, | ||
| allowExpression: true, | ||
| }, | ||
| ], | ||
| returnType: "boolean", | ||
| returnDescription: "True if the password matches the hash.", | ||
| errors: { | ||
| invalid_hash_format: "Hash is not in salt:iterations:hash form.", | ||
| }, | ||
| examples: [ | ||
| { | ||
| title: "Verify", | ||
| code: 'auth.verifyPassword "my-secret-password" $storedHash', | ||
| }, | ||
| ], | ||
| example: 'auth.verifyPassword "my-secret-password" $storedHash', | ||
| }, | ||
| buildAuthHeader: { | ||
| title: "Build Authorization header", | ||
| summary: "Build an Authorization header from a type and credentials", | ||
| description: "Generic builder. Accepts 'basic' (with a {username,password} object or a plain string), 'bearer', or 'apikey'; other types are passed through verbatim.", | ||
| group: "generic", | ||
| action: "read", | ||
| icon: "wrench", | ||
| capability: "read", | ||
| sideEffects: [], | ||
| idempotent: true, | ||
| since: "1.0.0", | ||
| tags: ["auth", "http", "authorization"], | ||
| parameters: [ | ||
| { | ||
| name: "type", | ||
| title: "Type", | ||
| description: "Auth type: basic, bearer, apikey.", | ||
| dataType: "string", | ||
| formInputType: "text", | ||
| required: true, | ||
| allowExpression: true, | ||
| placeholder: "bearer", | ||
| }, | ||
| { | ||
| name: "value", | ||
| title: "Value", | ||
| description: "Token string, or {username, password} object for basic.", | ||
| dataType: "any", | ||
| formInputType: "text", | ||
| required: true, | ||
| allowExpression: true, | ||
| }, | ||
| ], | ||
| returnType: "string", | ||
| returnDescription: "Complete Authorization header value.", | ||
| errors: {}, | ||
| examples: [ | ||
| { title: "Bearer", code: 'auth.buildAuthHeader "bearer" $token' }, | ||
| ], | ||
| example: 'auth.buildAuthHeader "bearer" $token', | ||
| }, | ||
| parseAuthHeader: { | ||
| title: "Parse Authorization header", | ||
| summary: "Parse any Authorization header into its scheme and credentials", | ||
| description: "For Basic, decodes and returns username and password. For other schemes, returns {scheme, token}.", | ||
| group: "generic", | ||
| action: "read", | ||
| icon: "wrench", | ||
| capability: "read", | ||
| sideEffects: [], | ||
| idempotent: true, | ||
| since: "1.0.0", | ||
| tags: ["auth", "http", "authorization", "parse"], | ||
| parameters: [headerParam], | ||
| returnType: "object", | ||
| returnDescription: "Object with scheme and decoded credentials.", | ||
| errors: {}, | ||
| examples: [ | ||
| { title: "Parse", code: "auth.parseAuthHeader $header" }, | ||
| ], | ||
| example: "auth.parseAuthHeader $header", | ||
| }, | ||
| }; | ||
| // ── Exports: module metadata ──────────────────────────────────────────── | ||
| export const AuthModuleMetadata = { | ||
| slug: "auth", | ||
| title: "Auth Headers", | ||
| summary: "API authentication header builders — Basic, Bearer, API key, HMAC signing/verification, and password hashing", | ||
| description: "Pure helpers that construct and parse HTTP Authorization headers and related primitives. Use these to shape the header value before passing it to an HTTP client. The module does not make network calls and does not store credentials itself — it is complementary to the credential system rather than a consumer of it.", | ||
| category: "web", | ||
| icon: "icon.svg", | ||
| color: "#f59e0b", | ||
| version: "0.2.0", | ||
| docsUrl: "https://docs.robinpath.com/modules/auth", | ||
| status: "stable", | ||
| requires: [], | ||
| minNodeVersion: "18.0.0", | ||
| credentialsType: null, | ||
| operationGroups: { | ||
| basic: { | ||
| title: "Basic", | ||
| description: "Basic auth build and parse.", | ||
| order: 1, | ||
| }, | ||
| bearer: { | ||
| title: "Bearer", | ||
| description: "Bearer token build and parse.", | ||
| order: 2, | ||
| }, | ||
| apikey: { | ||
| title: "API key", | ||
| description: "API key descriptors and generation.", | ||
| order: 3, | ||
| }, | ||
| hmac: { | ||
| title: "HMAC", | ||
| description: "HMAC sign and timing-safe verify.", | ||
| order: 4, | ||
| }, | ||
| password: { | ||
| title: "Passwords", | ||
| description: "PBKDF2 password hashing and verification.", | ||
| order: 5, | ||
| }, | ||
| generic: { | ||
| title: "Generic", | ||
| description: "General Authorization header build/parse.", | ||
| order: 6, | ||
| }, | ||
| }, | ||
| methods: Object.keys(AuthFunctions), | ||
| }; | ||
| //# sourceMappingURL=auth.js.map |
| {"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AASH,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvE,2EAA2E;AAC3E,MAAM,KAAK,GAA0B,EAAE,CAAC;AAExC,MAAM,UAAU,aAAa,CAAC,CAAa;IACzC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;AACjB,CAAC;AAED,2EAA2E;AAE3E,MAAM,KAAK,GAAmB,CAAC,IAAI,EAAE,EAAE;IACrC,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IACvC,M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,EAAE;YACR,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,8BAA8B,EAAE;SACzD;QACD,OAAO,EAAE,8BAA8B;KACxC;CACF,CAAC;AAEF,2EAA2E;AAE3E,MAAM,CAAC,MAAM,kBAAkB,GAAmB;IAChD,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,cAAc;IACrB,OAAO,EACL,8GAA8G;IAChH,WAAW,EACT,6TAA6T;IAC/T,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,yCAAyC;IAClD,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,EAAE;IACZ,cAAc,EAAE,QAAQ;IACxB,eAAe,EAAE,IAAI;IACrB,eAAe,EAAE;QACf,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,6BAA6B;YAC1C,KAAK,EAAE,CAAC;SACT;QACD,MAAM,EAAE;YACN,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,+BAA+B;YAC5C,KAAK,EAAE,CAAC;SACT;QACD,MAAM,EAAE;YACN,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,qCAAqC;YAClD,KAAK,EAAE,CAAC;SACT;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,mCAAmC;YAChD,KAAK,EAAE,CAAC;SACT;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,2CAA2C;YACxD,KAAK,EAAE,CAAC;SACT;QACD,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,2CAA2C;YACxD,KAAK,EAAE,CAAC;SACT;KACF;IACD,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;CACpC,CAAC"} |
| import type { ModuleAdapter } from "@robinpath/core"; | ||
| declare const AuthModule: ModuleAdapter; | ||
| export default AuthModule; | ||
| export { AuthModule }; | ||
| export { AuthFunctions, AuthFunctionMetadata, AuthModuleMetadata, configureAuth, } from "./auth.js"; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD,QAAA,MAAM,UAAU,EAAE,aASjB,CAAC;AAEF,eAAe,UAAU,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAC"} |
| import { AuthFunctions, AuthFunctionMetadata, AuthModuleMetadata, configureAuth, } from "./auth.js"; | ||
| const AuthModule = { | ||
| name: "auth", | ||
| functions: AuthFunctions, | ||
| functionMetadata: AuthFunctionMetadata, | ||
| moduleMetadata: AuthModuleMetadata, | ||
| // No credentials — auth helpers shape header values but do not store keys. | ||
| credentialTypes: [], | ||
| configure: configureAuth, | ||
| global: false, | ||
| }; | ||
| export default AuthModule; | ||
| export { AuthModule }; | ||
| export { AuthFunctions, AuthFunctionMetadata, AuthModuleMetadata, configureAuth, } from "./auth.js"; | ||
| //# sourceMappingURL=index.js.map |
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAC;AAEnB,MAAM,UAAU,GAAkB;IAChC,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,aAAa;IACxB,gBAAgB,EAAE,oBAAoB;IACtC,cAAc,EAAE,kBAAkB;IAClC,2EAA2E;IAC3E,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,aAAa;IACxB,MAAM,EAAE,KAAK;CACd,CAAC;AAEF,eAAe,UAAU,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAC"} |
+9
-4
| { | ||
| "name": "@robinpath/auth", | ||
| "version": "0.1.2", | ||
| "version": "0.3.0", | ||
| "description": "API authentication helpers (Basic, Bearer, API key, HMAC) for RobinPath", | ||
@@ -25,6 +25,6 @@ "publishConfig": { | ||
| "peerDependencies": { | ||
| "@robinpath/core": ">=0.20.0" | ||
| "@robinpath/core": ">=0.40.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@robinpath/core": "^0.30.1", | ||
| "@robinpath/core": "^0.40.0", | ||
| "tsx": "^4.19.0", | ||
@@ -43,4 +43,9 @@ "typescript": "^5.6.0" | ||
| "auth": "none", | ||
| "functionCount": 12 | ||
| "functionCount": 12, | ||
| "language": "nodejs", | ||
| "platforms": [ | ||
| "cloud", | ||
| "cli" | ||
| ] | ||
| } | ||
| } |
+1
-1
@@ -22,3 +22,3 @@ # @robinpath/auth | ||
| ```bash | ||
| npm install @robinpath/auth | ||
| robinpath add @robinpath/auth | ||
| ``` | ||
@@ -25,0 +25,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
51596
1206.89%10
400%764
Infinity%1
-50%2
100%