Skip to content

18F/identity-fake-server

Repository files navigation

identity-fake-vendor

A simple sinatra server that imitates our vendors. The client code to talk to them is in:

Run the server

make run

Tests

make test

Configuring the Fake Server

Set these environment variables to configure the delay duration for the various actions:

AAMVA_SECURITY_TOKEN_DELAY=5
AAMVA_AUTHENTICATION_TOKEN_DELAY=5
AAMVA_VERIFICATION_DELAY=5
ACUANT_CREATE_DOCUMENT_DELAY=5
ACUANT_UPLOAD_IMAGE_DELAY=5
ACUANT_FACEMATCH_DELAY=5
ACUANT_GET_RESULTS_DELAY=5
LEXISNEXIS_INSTANT_VERIFY_DELAY=5
LEXISNEXIS_PHONE_FINDER_DELAY=5
LEXISNEXIS_TRUE_ID_DELAY=5
USPS_IPPAAS_AUTH_DELAY=0
USPS_IPPAAS_GETPROOFINGRESULTS_DELAY=0
USPS_IPPAAS_OPTINIPPAPPLICANT_DELAY=0

The USPS IPPaaS proofing results endpoint also supports multiple response configurations.

# Defaults to success response if not set
USPS_IPPAAS_GETPROOFINGRESULTS_OUTCOME=

# Also supports 400 error for missing enrollment code
USPS_IPPAAS_GETPROOFINGRESULTS_OUTCOME=missing_enrollment_code

Configuring the IDP

Replace $base_url with the protocol, host, port (if needed):

proofer_mock_fallback: "false"

aamva_auth_request_timeout: "50"
aamva_verification_request_timeout: "50"
aamva_auth_url: "$base_url/Authentication/Authenticate.svc"
aamva_verification_url: "$base_url/dldv/2.1/online"

lexisnexis_base_url: "$base_url"
lexisnexis_instant_verify_workflow: "customers.gsa.instant.verify.workflow"
lexisnexis_phone_finder_workflow: "customers.gsa.phonefinder.workflow"
lexisnexis_timeout: "50"

# Uncomment below once TrueID is supported by the fake server
# doc_auth_vendor_randomize_percent: 95
# doc_auth_vendor_randomize_alternate_vendor: 'lexisnexis'
### LexisNexis TrueID Configs
lexisnexis_trueid_account_id: "00000"
lexisnexis_trueid_username: testy_tester
lexisnexis_trueid_password: test
lexisnexis_trueid_liveness_cropping_workflow: TrueID_liveness_crop
lexisnexis_trueid_liveness_nocropping_workflow: TrueID_liveness_no_crop
lexisnexis_trueid_noliveness_cropping_workflow: TrueID_no_liveness_crop
lexisnexis_trueid_noliveness_nocropping_workflow: TrueID_no_liveness_no_crop
lexisnexis_trueid_timeout: '60'

acuant_timeout: "55"
acuant_assure_id_url: "$base_url"
acuant_facial_match_url: "$base_url"
doc_auth_vendor: 'acuant'