Skip to content

Instantly share code, notes, and snippets.

View joshuakwaite's full-sized avatar

Josh Waite joshuakwaite

View GitHub Profile

Salesforce OAuth 2.0 JWT Bearer Token Flow Walk-Through

This document will walk you through how to create or configure a Salesforce application for use with JWT authentication. These configuration steps and the example code works as of Salesforce API version 42.0.

Prerequisites

Create an RSA x509 private key/certification pair

@joshuakwaite
joshuakwaite / get-npm-package-version
Created October 2, 2017 18:02 — forked from DarrenN/get-npm-package-version
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION
@joshuakwaite
joshuakwaite / 0_reuse_code.js
Created August 8, 2017 21:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console