| modified | title |
|---|---|
2021-12-16 22:15:42 UTC |
spring-security-oauth2-salesforce |
Spring Boot Security OAuth Authorisation Code Flow (Web Server) with Salesforce using Servlet Stack. If you are looking for same OAuth implementation using Reactive Stack, then check this repo: https://github.com/gouravsood/spring-security-oauth2-salesforce-reactive
Steps to run this project
- Create a Connected App in Salesforce and copy the Consumer Key and Consumer Secret
- In application.yml file (src/main/resources/application.yml)
- replace
client-idwith Consumer Key from Connected App - replace
client-secretwith Consumer Secret from Connected App
- replace
- Run
mvn clean install - Start the server with
mvn spring-boot:run - Go to URL http://localhost:8080/accounts access the protected Accounts records from Salesforce.