Skip to content

Conversation

@chtyim
Copy link
Contributor

@chtyim chtyim commented Feb 17, 2021

No description provided.

@chtyim chtyim force-pushed the feature/CDAP-17611-oauth branch 2 times, most recently from dd4e48d to ce33c0f Compare February 17, 2021 01:24
OAuthInfo oAuthInfo = config.getOAuthInfo();
if (oAuthInfo != null) {
configBuilder.put(SalesforceConstants.CONFIG_OAUTH_TOKEN, oAuthInfo.getAccessToken());
configBuilder.put(SalesforceConstants.CONFIG_OAUTH_INSTANCE_URL, oAuthInfo.getInstanceURL());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: use same style (chained or not of builder calls in both if and else

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@chtyim chtyim force-pushed the feature/CDAP-17611-oauth branch from ce33c0f to b5c8108 Compare February 17, 2021 19:42
Copy link

@supriyapatil-google supriyapatil-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Description("OAuth information for connecting to Salesforce. " +
"It is expected to be an json string containing two properties, \"accessToken\" and \"instanceURL\", " +
"which carry the OAuth access token and the URL to connect to respectively. " +
"Use the ${oauth(provider, credentialId)} macro function for getting acquiring OAuth information dynamically. ")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove getting.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

/**
* Class to carry OAuth information returned by the {@code ${oauth}} macro function.
*/
public class OAuthInfo {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

.put(SalesforceConstants.CONFIG_CONSUMER_KEY, config.getConsumerKey())
.put(SalesforceConstants.CONFIG_CONSUMER_SECRET, config.getConsumerSecret())
.put(SalesforceConstants.CONFIG_LOGIN_URL, config.getLoginUrl())
.put(SalesforceSinkConstants.CONFIG_SOBJECT, config.getSObject())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUBJECT

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think SOJBECT stands for the Salesforce object.

@chtyim chtyim force-pushed the feature/CDAP-17611-oauth branch from b5c8108 to 7cf36f9 Compare February 17, 2021 20:01
@chtyim chtyim force-pushed the feature/CDAP-17611-oauth branch from 7cf36f9 to 7769c1e Compare February 19, 2021 09:01
@chtyim chtyim merged commit f3d38b2 into develop Feb 19, 2021
@MEseifan MEseifan mentioned this pull request Mar 24, 2021
@itsankit-google itsankit-google deleted the feature/CDAP-17611-oauth branch April 3, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants