Skip to content

Commit

Permalink
Simplified environment entries
Browse files Browse the repository at this point in the history
  • Loading branch information
zregvart committed Apr 27, 2017
1 parent 08063d2 commit 201770d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ haven't already.

To run set the environment variables:

| Variable name | Value |
|-----------------------------------------|----------------------------|
| CAMEL_COMPONENT_SALESFORCE_CLIENTID | OAuth Consumer Key |
| CAMEL_COMPONENT_SALESFORCE_CLIENTSECRET | OAuth Consumer Secret |
| CAMEL_COMPONENT_SALESFORCE_REFRESHTOKEN | OAuth Refresh Token |
| CAMEL_COMPONENT_SLACK_WEBHOOKURL | Slack Incoming WebHook URL |
| Variable name | Value |
|-------------------------|----------------------------|
| SALESFORCE_CLIENTID | OAuth Consumer Key |
| SALESFORCE_CLIENTSECRET | OAuth Consumer Secret |
| SALESFORCE_REFRESHTOKEN | OAuth Refresh Token |
| SLACK_WEBHOOKURL | Slack Incoming WebHook URL |

And run:

Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ camel.springboot.name=camel-salesforce-slack

camel.component.salesforce.packages=com.regvart.talks.salesforce.dto
## Consumer Key of the connected application
camel.component.salesforce.clientId=${CAMEL_COMPONENT_SALESFORCE_CLIENTID}
camel.component.salesforce.clientId=${SALESFORCE_CLIENTID}
## Consumer Secret of the connected application
camel.component.salesforce.clientSecret=${CAMEL_COMPONENT_SALESFORCE_CLIENTSECRET}
camel.component.salesforce.clientSecret=${SALESFORCE_CLIENTSECRET}
## refresh_token from OAuth flow
camel.component.salesforce.refreshToken=${CAMEL_COMPONENT_SALESFORCE_REFRESHTOKEN}
camel.component.salesforce.refreshToken=${SALESFORCE_REFRESHTOKEN}
## you can also use:
#camel.component.salesforce.userName=<Salesforce username>
#camel.component.salesforce.password=<Salesforce password>

camel.component.slack.webhookUrl=${CAMEL_COMPONENT_SLACK_WEBHOOKURL}
camel.component.slack.webhookUrl=${SLACK_WEBHOOKURL}

0 comments on commit 201770d

Please sign in to comment.