Skip to content

Instantly share code, notes, and snippets.

@davidmreed
davidmreed / simple-salesforce-jwt.py
Created January 15, 2019 01:32
Using simple_salesforce with JWT authentication
import jwt
import requests
import datetime
from simple_salesforce import Salesforce
from simple_salesforce.exceptions import SalesforceAuthenticationFailed
def jwt_login(consumer_id, username, private_key, sandbox=False):
endpoint = 'https://test.salesforce.com' if sandbox is True else 'https://login.salesforce.com'
jwt_payload = jwt.encode(
{
@MaxMatti
MaxMatti / README.md
Last active May 22, 2024 16:53
Using a secondary browser as Messenger for MS Teams only (open all links in other browser)

How to use a secondary browser as MS Teams messenger only

Chrome for Teams, Firefox for everything else

  1. install both browsers
  2. install the chrome-extension Open in Firefox
  3. add teams.microsoft.com as PWA in Chome
  4. go to the settings for "Open in Firefox" and select to open everything except *.microsoft.com in firefox

Firefox for Teams, Chrome for everything else