-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Security token encryption support in SFDC connector #2718
Conversation
…ers like setting up transport factory.
Codecov Report
@@ Coverage Diff @@
## master #2718 +/- ##
============================================
+ Coverage 45.07% 45.08% +0.01%
- Complexity 8743 8744 +1
============================================
Files 1880 1880
Lines 70169 70170 +1
Branches 7700 7700
============================================
+ Hits 31627 31636 +9
+ Misses 35616 35611 -5
+ Partials 2926 2923 -3
Continue to review full report at Codecov.
|
@@ -83,6 +83,10 @@ public HttpEntity getAuthentication() throws RestApiConnectionException { | |||
String password = PasswordManager.getInstance(this.state) | |||
.readPassword(this.state.getProp(ConfigurationKeys.SOURCE_CONN_PASSWORD)); | |||
String securityToken = this.state.getProp(ConfigurationKeys.SOURCE_CONN_SECURITY_TOKEN); | |||
if (this.state.getPropAsBoolean(ConfigurationKeys.SOURCE_CONN_DECRYPT_SECURITY_TOKEN, false)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why have the option? The password manager will pass the password through if it is not encoded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed it's not required. Fixed it.
…andle non encoded token.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
…connector Closes apache#2718 from mvachhani/master
Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA
Description
Security token encryption support in SFDC connector so as not to have security token as plain text. This change will decrypt the security token of the encrypt flag is set.
Tests
Commits