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 (5559B)


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