modified | title |
---|---|
2021-12-16 12:35:33 UTC |
spring-security-oauth2-salesforce |
Spring Boot Security OAuth Authorisation Code Flow (Web Server) with Salesforce using Reactive Stack. If you are looking for same OAuth implementation using Servlet Stack, then check this repo. https://github.com/gouravsood/spring-security-oauth2-salesforce-servlet
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-id
with Consumer Key from Connected App - replace
client-secret
with 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.