albarivas / security-workshop

Security Workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 git@github.com: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
    

About

Security Workshop


Languages

Language:JavaScript 42.3%Language:HTML 32.2%Language:Apex 25.5%