-
Notifications
You must be signed in to change notification settings - Fork 166
Clean up / refactor ThreatMetrix configuration #7582
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
Changes from all commits
49bf7a3
34b5737
203f4c3
f7a0d8c
9dd5630
1725d60
360531e
f7f059a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -173,15 +173,9 @@ lexisnexis_trueid_noliveness_cropping_workflow: customers.gsa2.trueid.workflow | |
| lexisnexis_trueid_noliveness_nocropping_workflow: customers.gsa2.trueid.workflow | ||
| ################################################################### | ||
| # LexisNexis DDP/ThreatMetrix ##################################### | ||
| lexisnexis_threatmetrix_api_key: test_api_key | ||
| lexisnexis_threatmetrix_base_url: https://www.example.com | ||
| lexisnexis_threatmetrix_org_id: test_account | ||
| lexisnexis_threatmetrix_policy: test-policy | ||
| lexisnexis_threatmetrix_mock_enabled: true | ||
| lexisnexis_threatmetrix_support_code: ABCD | ||
| lexisnexis_threatmetrix_timeout: 1.0 | ||
| lexisnexis_threatmetrix_enabled: false | ||
| lexisnexis_threatmetrix_mock_enabled: true | ||
| lexisnexis_threatmetrix_required_to_verify: false | ||
| lexisnexis_threatmetrix_js_signing_cert: '' | ||
| ################################################################### | ||
| lockout_period_in_minutes: 10 | ||
|
|
@@ -234,7 +228,6 @@ piv_cac_verify_token_url: https://localhost:8443/ | |
| platform_auth_set_up_enabled: false | ||
| poll_rate_for_verify_in_seconds: 3 | ||
| proofer_mock_fallback: true | ||
| proofing_device_profiling_collecting_enabled: true | ||
| proof_address_max_attempts: 5 | ||
| proof_address_max_attempt_window_in_minutes: 360 | ||
| proof_ssn_max_attempts: 10 | ||
|
|
@@ -445,6 +438,7 @@ production: | |
| kantara_2fa_phone_restricted: false | ||
| kantara_2fa_phone_existing_user_restriction: false | ||
| kantara_restriction_enforcement_date: '2022-07-19' | ||
| lexisnexis_threatmetrix_mock_enabled: false | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. duplicate. line 176 already has mock_enabled: true
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, the goal here is to enable it locally by default but disable it by default in production |
||
| logins_per_ip_limit: 20 | ||
| logins_per_ip_period: 20 | ||
| logins_per_ip_track_only_mode: true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,7 +60,7 @@ def add(key, type: :string, allow_nil: false, enum: nil, options: {}) | |
|
|
||
| converted_value = CONVERTERS.fetch(type).call(value, options: options) if !value.nil? | ||
| raise "#{key} is required but is not present" if converted_value.nil? && !allow_nil | ||
| if enum && !enum.include?(converted_value) | ||
| if enum && !(enum.include?(converted_value) || (converted_value.nil? && allow_nil)) | ||
| raise "unexpected #{key}: #{value}, expected one of #{enum}" | ||
| end | ||
|
|
||
|
|
@@ -248,13 +248,13 @@ def self.build_store(config_map) | |
| config.add(:lexisnexis_trueid_noliveness_cropping_workflow, type: :string) | ||
| config.add(:lexisnexis_trueid_noliveness_nocropping_workflow, type: :string) | ||
| config.add(:lexisnexis_trueid_timeout, type: :float) | ||
| config.add(:lexisnexis_threatmetrix_api_key, type: :string) | ||
| config.add(:lexisnexis_threatmetrix_base_url, type: :string) | ||
| config.add(:lexisnexis_threatmetrix_enabled, type: :boolean) | ||
| config.add(:lexisnexis_threatmetrix_api_key, type: :string, allow_nil: true) | ||
| config.add(:lexisnexis_threatmetrix_base_url, type: :string, allow_nil: true) | ||
| config.add(:lexisnexis_threatmetrix_enabled, type: :boolean, allow_nil: true) | ||
| config.add(:lexisnexis_threatmetrix_mock_enabled, type: :boolean) | ||
| config.add(:lexisnexis_threatmetrix_org_id, type: :string) | ||
| config.add(:lexisnexis_threatmetrix_policy, type: :string) | ||
| config.add(:lexisnexis_threatmetrix_required_to_verify, type: :boolean) | ||
| config.add(:lexisnexis_threatmetrix_org_id, type: :string, allow_nil: true) | ||
| config.add(:lexisnexis_threatmetrix_policy, type: :string, allow_nil: true) | ||
| config.add(:lexisnexis_threatmetrix_required_to_verify, type: :boolean, allow_nil: true) | ||
| config.add(:lexisnexis_threatmetrix_support_code, type: :string) | ||
| config.add(:lexisnexis_threatmetrix_timeout, type: :float) | ||
| config.add(:lexisnexis_threatmetrix_js_signing_cert, type: :string) | ||
|
|
@@ -323,7 +323,13 @@ def self.build_store(config_map) | |
| config.add(:platform_auth_set_up_enabled, type: :boolean) | ||
| config.add(:poll_rate_for_verify_in_seconds, type: :integer) | ||
| config.add(:proofer_mock_fallback, type: :boolean) | ||
| config.add(:proofing_device_profiling_collecting_enabled, type: :boolean) | ||
| config.add( | ||
| :proofing_device_profiling, | ||
| type: :symbol, | ||
| enum: [:disabled, :collect_only, :enabled], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. adding |
||
| allow_nil: true, | ||
| ) | ||
| config.add(:proofing_device_profiling_collecting_enabled, type: :boolean, allow_nil: true) | ||
| config.add(:proof_address_max_attempts, type: :integer) | ||
| config.add(:proof_address_max_attempt_window_in_minutes, type: :integer) | ||
| config.add(:proof_ssn_max_attempts, type: :integer) | ||
|
|
||
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.
Minor update here: Check that the profile is deactivated due to threatmetrix rather than re-evaluating the
threatmetrix_review_status