Extracts Salesforce OAuth2 access tokens including instance_url for API calls.
// Source: https://github.com/scribejava/scribejava | License: MIT | Copyright 2010 Pablo Fernandez
// Provided via justclaw.it.com; keep this notice with the code.
package com.github.scribejava.apis.salesforce;
import com.fasterxml.jackson.databind.JsonNode;
import com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor;
/**
* This extractor parses in addition to the standard Extractor the instance_url
* of the used Salesforce organization.
*/
public class SalesforceJsonTokenExtractor extends OAuth2AccessTokenJsonExtractor {
protected SalesforceJsonTokenExtractor() {
}
private static class InstanceHolder {
private static final SalesforceJsonTokenExtractor INSTANCE = new SalesforceJsonTokenExtractor();
}
public static SalesforceJsonTokenExt
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key