Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.07 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.07 KB

Code Examples that show how to prevent common security vulnerabilities in Apex and LWC

Pre-requisites:

  1. Sign-up for a Developer Org at sfdc.co/devorg

  2. Setup Developer Tools as explained in sfdc.co/setupdevtools

  3. Clone the repo:

    git clone [email protected]:albarivas/security-workshop.git
    
  4. If you haven't already done so, authorize with your hub org and provide it with an alias (myhuborg in the command below):

    sfdx force:auth:web:login -d -a myhuborg
    
  5. Create a scratch org and provide it with an alias (security in the command below):

    sfdx force:org:create -s -f config/project-scratch-def.json -a security
    
  6. Push the app to your scratch org:

    sfdx force:source:push
    
  7. Assign the Security permission set to the default user:

    sfdx force:user:permset:assign -n security
    
  8. Import sample data:

    sfdx force:data:tree:import -p ./data/sample-data-plan.json
    
  9. Open the scratch org:

    sfdx force:org:open