exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

test_exchange_api_age_restriction.conf (5793B)


      1 # This file is in the public domain.
      2 #
      3 
      4 [PATHS]
      5 TALER_TEST_HOME = test_exchange_api_home/
      6 
      7 [exchange]
      8 # A purse must not outlive the denominations of the coins in it, see the
      9 # comment on PURSE_EXPIRATION_LIMIT in exchange.conf.
     10 PURSE_EXPIRATION_LIMIT = 3 years
     11 CURRENCY = EUR
     12 CURRENCY_ROUND_UNIT = EUR:0.01
     13 
     14 [auditor]
     15 BASE_URL = "http://localhost:8083/"
     16 PORT = 8083
     17 PUBLIC_KEY = T0XJ9QZ59YDN7QG3RE40SB2HY7W0ASR1EKF4WZDGZ1G159RSQC80
     18 TINY_AMOUNT = EUR:0.01
     19 
     20 [auditordb-postgres]
     21 CONFIG = "postgres:///talercheck"
     22 
     23 [bank]
     24 HTTP_PORT = 8082
     25 
     26 [exchange]
     27 TERMS_ETAG = tos
     28 PRIVACY_ETAG = 0
     29 PORT = 8081
     30 MASTER_PUBLIC_KEY = 98NJW3CQHZQGQXTY3K85K531XKPAPAVV4Q5V8PYYRR00NJGZWNVG
     31 DB = postgres
     32 BASE_URL = "http://localhost:8081/"
     33 EXPIRE_SHARD_SIZE ="300 ms"
     34 EXPIRE_IDLE_SLEEP_INTERVAL ="1 s"
     35 ENABLE_KYC = YES
     36 AGE_RESTRICTION_ENABLED = YES
     37 #AGE_GROUPS = "8:10:12:14:16:18:21"
     38 
     39 [exchangedb-postgres]
     40 CONFIG = "postgres:///talercheck"
     41 
     42 [taler-exchange-secmod-cs]
     43 LOOKAHEAD_SIGN = "24 days"
     44 
     45 [taler-exchange-secmod-rsa]
     46 LOOKAHEAD_SIGN = "24 days"
     47 
     48 [taler-exchange-secmod-eddsa]
     49 LOOKAHEAD_SIGN = "24 days"
     50 DURATION = "14 days"
     51 
     52 
     53 [exchange-account-1]
     54 PAYTO_URI = "payto://x-taler-bank/localhost/42?receiver-name=42"
     55 ENABLE_DEBIT = YES
     56 ENABLE_CREDIT = YES
     57 
     58 [exchange-accountcredentials-1]
     59 WIRE_GATEWAY_AUTH_METHOD = none
     60 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/42/taler-wire-gateway/"
     61 
     62 [admin-accountcredentials-1]
     63 WIRE_GATEWAY_AUTH_METHOD = none
     64 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/42/taler-wire-gateway/"
     65 
     66 [exchange-account-2]
     67 PAYTO_URI = "payto://x-taler-bank/localhost/2?receiver-name=2"
     68 ENABLE_DEBIT = YES
     69 ENABLE_CREDIT = YES
     70 
     71 [exchange-accountcredentials-2]
     72 WIRE_GATEWAY_AUTH_METHOD = basic
     73 USERNAME = Exchange
     74 PASSWORD = password
     75 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/2/taler-wire-gateway/"
     76 
     77 [admin-accountcredentials-2]
     78 WIRE_GATEWAY_AUTH_METHOD = basic
     79 USERNAME = Exchange
     80 PASSWORD = password
     81 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/2/taler-wire-gateway/"
     82 
     83 [kyc-provider-test-oauth2]
     84 LOGIC = oauth2
     85 KYC_OAUTH2_VALIDITY = forever
     86 KYC_OAUTH2_TOKEN_URL = http://localhost:6666/oauth/v2/token
     87 KYC_OAUTH2_AUTHORIZE_URL = http://localhost:6666/oauth/v2/login
     88 KYC_OAUTH2_INFO_URL = http://localhost:6666/api/user/me
     89 KYC_OAUTH2_CLIENT_ID = taler-exchange
     90 KYC_OAUTH2_CLIENT_SECRET = exchange-secret
     91 KYC_OAUTH2_POST_URL = http://example.com/
     92 KYC_OAUTH2_CONVERTER_HELPER = taler-exchange-kyc-oauth2-test-converter.sh
     93 # The test OAuth 2.0 service listens on plaintext http://localhost.
     94 KYC_OAUTH2_DEBUG_MODE = YES
     95 
     96 [kyc-check-oauth-test-id]
     97 VOLUNTARY = NO
     98 # We use an external provider
     99 TYPE = LINK
    100 DESCRIPTION = "Oauth2 dummy authentication"
    101 DESCRIPTION_I18N = {}
    102 # No context requirements
    103 REQUIRES =
    104 # Measure to execute if check failed.
    105 FALLBACK = manual-freeze
    106 # This check runs on oauth2
    107 PROVIDER_ID = test-oauth2
    108 # Outputs from this check
    109 OUTPUTS = FULL_NAME DATE_OF_BIRTH
    110 
    111 # This is the "default" setting for an account if
    112 # it has not yet triggered anything.
    113 [kyc-check-default]
    114 VOLUNTARY = NO
    115 TYPE = INFO
    116 DESCRIPTION = "Your account is operating normally"
    117 DESCRIPTION_I18N = {}
    118 # No context requirements
    119 REQUIRES =
    120 # Measure to execute if check failed. Well,
    121 # this check cannot really fail, but the
    122 # conservative answer is to freeze.
    123 FALLBACK = manual-freeze
    124 
    125 # If this "check" is triggered, we merely inform
    126 # the user that their account has been frozen. The
    127 # user cannot proceed manually.
    128 [kyc-check-info-frozen]
    129 VOLUNTARY = NO
    130 TYPE = INFO
    131 DESCRIPTION = "Your account is frozen pending investigation"
    132 DESCRIPTION_I18N = {}
    133 # No context requirements
    134 REQUIRES =
    135 # Measure to execute if check failed. Well,
    136 # this check cannot really fail, but we stay
    137 # where we are: frozen.
    138 FALLBACK = manual-freeze
    139 
    140 # If this "check" is triggered, we merely inform
    141 # the user that we got their oauth-test data on file.
    142 [kyc-check-info-oauth-test-passed]
    143 VOLUNTARY = NO
    144 TYPE = INFO
    145 DESCRIPTION = "You passed the OAuth2 check. Thank you."
    146 DESCRIPTION_I18N = {}
    147 # No context requirements
    148 REQUIRES =
    149 # Measure to execute if check failed. Well,
    150 # this check cannot really fail, but we stay
    151 # where we are: frozen.
    152 FALLBACK = manual-freeze
    153 
    154 [aml-program-oauth-output-check]
    155 DESCRIPTION = "Validates the output from OAauth2 and then permits the reserve closing to proceed"
    156 # Command that runs on the output of the OAuth provider
    157 # to decide what rules should apply next.
    158 COMMAND = taler-exchange-helper-measure-test-oauth
    159 # What measure to take if the COMMAND failed.
    160 FALLBACK = manual-freeze
    161 
    162 [kyc-measure-run-oauth]
    163 # Get client ID via the OAuth test provider
    164 CHECK_NAME = oauth-test-id
    165 # AML program to run on the output of the OAuth provider
    166 # to decide what rules should apply next.
    167 PROGRAM = oauth-output-check
    168 # Context to provide for check and program; empty.
    169 CONTEXT = {}
    170 
    171 [aml-program-freeze]
    172 DESCRIPTION = "Freeze the account"
    173 COMMAND = taler-exchange-helper-measure-freeze
    174 FALLBACK = manual-freeze
    175 
    176 # This is a base-measure that is being triggered
    177 # whenever something goes wrong. We freeze the
    178 # account and ask AML staff to investigate.
    179 [kyc-measure-manual-freeze]
    180 CHECK_NAME = skip
    181 # AML program that freezes the account and flags
    182 # it for investigation.
    183 PROGRAM = freeze
    184 # Context to provide for check and program; empty.
    185 CONTEXT = {}
    186 
    187 # This rule requests that the users passes KYC
    188 # when closing the reserve.
    189 [kyc-rule-withdraw]
    190 ENABLED = YES
    191 # This is a public rule.
    192 EXPOSED = YES
    193 # All checks listed must be done (well, there is only one...)
    194 IS_AND_COMBINATOR = YES
    195 # This happens if the reserve is closed.
    196 OPERATION_TYPE = WITHDRAW
    197 # Threshold is EUR:12.
    198 THRESHOLD = EUR:12
    199 # Timeframe doesn't exactly matter with a threshold of EUR:0.
    200 TIMEFRAME = 1d
    201 # If the rule is triggered, ask the user to provide
    202 # personal data via OAuth2
    203 NEXT_MEASURES = run-oauth