Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions identity-doc-auth.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ Gem::Specification.new do |spec|

spec.add_dependency('faraday')
spec.add_dependency('activesupport')
spec.add_dependency('redacted_struct', '>= 1.0.0')
end
11 changes: 10 additions & 1 deletion lib/identity_doc_auth/acuant/config.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
require 'redacted_struct'

module IdentityDocAuth
module Acuant
# @!attribute [rw] exception_notifier
# @return [Proc] should be a proc that accepts an Exception and an optional context hash
# @example
# config.exception_notifier.call(RuntimeError.new("oh no"), attempt_count: 1)
Config = Struct.new(
Config = RedactedStruct.new(
:assure_id_password,
:assure_id_subscription_id,
:assure_id_url,
Expand All @@ -14,6 +16,13 @@ module Acuant
:timeout,
:exception_notifier,
keyword_init: true,
allowed_members: [
:assure_id_subscription_id,
:assure_id_url,
:facial_match_url,
:passlive_url,
:timeout,
]
)
end
end
14 changes: 13 additions & 1 deletion lib/identity_doc_auth/lexis_nexis/config.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
require 'redacted_struct'

module IdentityDocAuth
module LexisNexis
# @!attribute [rw] exception_notifier
# @return [Proc] should be a proc that accepts an Exception and an optional context hash
# @example
# config.exception_notifier.call(RuntimeError.new("oh no"), attempt_count: 1)
Config = Struct.new(
Config = RedactedStruct.new(
:account_id,
:base_url, # required
:request_mode,
Expand All @@ -17,6 +19,16 @@ module LexisNexis
:exception_notifier, # optional
:locale, # required
keyword_init: true,
allowed_members: [
:account_id,
:base_url,
:request_mode,
:trueid_liveness_workflow,
:trueid_noliveness_workflow,
:timeout,
:exception_notifier,
:locale,
],
) do
def validate!
raise 'config missing base_url' if !base_url
Expand Down
2 changes: 1 addition & 1 deletion lib/identity_doc_auth/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module IdentityDocAuth
VERSION = "0.4.1"
VERSION = "0.5.0"
end