Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.09 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.09 KB

Salesforce App

Org Manager To connect all your salesforce orgs from one place

Deploy to Salesforce

Part 1:

Deploy metedata to your org

Part 2:

Create Connect app in your org

Select following in "selected oauth scope"

Access your basic information (id, profile, email, address, phone)
Access and manage your data (api)
Provide access to your data via the Web (web)
Perform requests on your behalf at any time (refresh_token, offline_access)

In Callback URL add following URL

https://<your domain>.force.com/apex/ORG_OAUTH2

Part 3:

Open "ORG_Manager" Custom Settings

Enter the following data from connected app

Consumer Secret	
Consumer Key	
Callback URL	

Genrate Private Key and enter in the field Private Key

Blob privateKey= Crypto.generateAesKey(256);
String cryptoKey =EncodingUtil.base64Encode(privateKey);
System.debug(cryptoKey);