A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/lciesielski/mcp-salesforce-example below:

GitHub - lciesielski/mcp-salesforce-example

import fs from 'fs';
import path from 'path';
// You might load these from environment variables, a config file, etc.

export function getSalesforceCredentials() {
    // --- IMPLEMENT YOUR LOGIC HERE to securely load credentials ---
    const loginUrl = "YOUR_SALESFORCE_LOGIN_URL"; // e.g., https://login.salesforce.com or https://yourdomain.my.salesforce.com
    const username = "YOUR_SALESFORCE_USERNAME";
    const clientId = "YOUR_CONNECTED_APP_CONSUMER_KEY";
    // Load your private key used to sign the JWT assertion
    // Ensure the key is formatted correctly, including BEGIN/END lines.
    const privateKey = fs.readFileSync(path.resolve(__dirname, 'path/to/your/server.key'), 'utf8'); 
    // Example: const privateKey = process.env.SF_PRIVATE_KEY;

    if (!loginUrl || !username || !clientId || !privateKey) {
         throw new Error("Missing required Salesforce credentials in utils/credentials.js");
    }

    return {
        loginUrl,
        username,
        clientId,
        privateKey
    };
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4