test_kyc_api.conf (7237B)
1 # This file is in the public domain. 2 # 3 [PATHS] 4 TALER_TEST_HOME = test_merchant_api_home/ 5 6 [merchant-exchange-chf] 7 DISABLED = YES 8 9 [merchant-exchange-kudos] 10 DISABLED = YES 11 12 [taler-helper-crypto-rsa] 13 LOOKAHEAD_SIGN = 24 days 14 15 [taler-helper-crypto-eddsa] 16 LOOKAHEAD_SIGN = 24 days 17 DURATION = 14 days 18 19 [bank] 20 HTTP_PORT = 8082 21 22 [merchant] 23 PORT = 8080 24 SERVE = tcp 25 STRICT_PROTOCOL_V19 = YES 26 DB = postgres 27 BASE_URL = http://localhost:8080/ 28 29 # This specifies which database the postgres backend uses. 30 [merchantdb-postgres] 31 CONFIG = postgres:///talercheck 32 SQL_DIR = ${DATADIR}sql/ 33 34 [merchant-exchange-test] 35 MASTER_KEY = KHA6YSPRQV1ZFCF144SY8KJNR588XA8DA0F6510FKJW30DJFJNAG 36 EXCHANGE_BASE_URL = http://localhost:8081/ 37 CURRENCY = EUR 38 39 [auditor] 40 BASE_URL = "http://localhost:8083/" 41 AUDITOR_PRIV_FILE = ${TALER_DATA_HOME}/auditor/offline-keys/auditor.priv 42 DB = postgres 43 PUBLIC_KEY = A29P1DRGXVTJZV1HFG251QPAW3ZTC681ZJWXB1T0RWGPE2HQSGZG 44 TALER_AUDITOR_SALT = test 45 TINY_AMOUNT = EUR:0.01 46 47 [auditordb-postgres] 48 CONFIG = postgres:///talercheck 49 50 [exchange] 51 # A purse must not outlive the denominations of the coins in it, see the 52 # comment on PURSE_EXPIRATION_LIMIT in the exchange's exchange.conf. 53 PURSE_EXPIRATION_LIMIT = 3 years 54 CURRENCY = EUR 55 CURRENCY_ROUND_UNIT = EUR:0.01 56 TINY_AMOUNT = EUR:0.01 57 PORT = 8081 58 MASTER_PUBLIC_KEY = KHA6YSPRQV1ZFCF144SY8KJNR588XA8DA0F6510FKJW30DJFJNAG 59 BASE_URL = "http://localhost:8081/" 60 STEFAN_ABS = "EUR:5" 61 ENABLE_KYC = YES 62 63 [kyc-provider-test-oauth2] 64 LOGIC = oauth2 65 KYC_OAUTH2_VALIDITY = forever 66 KYC_OAUTH2_TOKEN_URL = http://localhost:6666/oauth/v2/token 67 KYC_OAUTH2_AUTHORIZE_URL = http://localhost:6666/oauth/v2/login 68 KYC_OAUTH2_INFO_URL = http://localhost:6666/api/user/me 69 KYC_OAUTH2_CLIENT_ID = taler-exchange 70 KYC_OAUTH2_CLIENT_SECRET = exchange-secret 71 KYC_OAUTH2_POST_URL = http://example.com/ 72 KYC_OAUTH2_CONVERTER_HELPER = taler-exchange-kyc-oauth2-test-converter.sh 73 74 [kyc-check-oauth-test-id] 75 VOLUNTARY = NO 76 # We use an external provider 77 TYPE = LINK 78 DESCRIPTION = "Oauth2 dummy authentication" 79 DESCRIPTION_I18N = {} 80 # No context requirements 81 REQUIRES = 82 # Measure to execute if check failed. 83 FALLBACK = manual-freeze 84 # This check runs on oauth2 85 PROVIDER_ID = test-oauth2 86 # Outputs from this check 87 OUTPUTS = FULL_NAME DATE_OF_BIRTH 88 89 [kyc-check-test-form] 90 VOLUNTARY = NO 91 # We use an external provider 92 TYPE = FORM 93 DESCRIPTION = "Test form" 94 DESCRIPTION_I18N = {} 95 # No context requirements 96 REQUIRES = 97 # Measure to execute if check failed. 98 FALLBACK = manual-freeze 99 # This check runs on oauth2 100 FORM_NAME = full_name_and_birthdate 101 # Outputs from this check 102 OUTPUTS = FULL_NAME DATE_OF_BIRTH 103 104 # This is the "default" setting for an account if 105 # it has not yet triggered anything. 106 [kyc-check-default] 107 VOLUNTARY = NO 108 TYPE = INFO 109 DESCRIPTION = "Your account is operating normally" 110 DESCRIPTION_I18N = {} 111 # No context requirements 112 REQUIRES = 113 # Measure to execute if check failed. Well, 114 # this check cannot really fail, but the 115 # conservative answer is to freeze. 116 FALLBACK = manual-freeze 117 118 # If this "check" is triggered, we merely inform 119 # the user that their account has been frozen. The 120 # user cannot proceed manually. 121 [kyc-check-info-frozen] 122 VOLUNTARY = NO 123 TYPE = INFO 124 DESCRIPTION = "Your account is frozen pending investigation" 125 DESCRIPTION_I18N = {} 126 # No context requirements 127 REQUIRES = 128 # Measure to execute if check failed. Well, 129 # this check cannot really fail, but we stay 130 # where we are: frozen. 131 FALLBACK = manual-freeze 132 133 # If this "check" is triggered, we merely inform 134 # the user that we got their oauth-test data on file. 135 [kyc-check-info-oauth-test-passed] 136 VOLUNTARY = NO 137 TYPE = INFO 138 DESCRIPTION = "You passed the OAuth2 check. Thank you." 139 DESCRIPTION_I18N = {} 140 # No context requirements 141 REQUIRES = 142 # Measure to execute if check failed. Well, 143 # this check cannot really fail, but we stay 144 # where we are: frozen. 145 FALLBACK = manual-freeze 146 147 [aml-program-oauth-output-check] 148 DESCRIPTION = "Validates the output from OAauth2 and then increases all limits to EUR:1000" 149 # Command that runs on the output of the OAuth provider 150 # to decide what rules should apply next. 151 COMMAND = taler-exchange-helper-measure-test-oauth 152 # What measure to take if the COMMAND failed. 153 FALLBACK = manual-freeze 154 155 [aml-program-test-form-check] 156 DESCRIPTION = "Validates the output from the test-form and then increases all limits to EUR:1000" 157 # Command that runs on the output of the form 158 # to decide what rules should apply next. 159 COMMAND = taler-exchange-helper-measure-test-form 160 # What measure to take if the COMMAND failed. 161 FALLBACK = manual-freeze 162 163 164 [kyc-measure-run-oauth] 165 # Get client ID via the OAuth test provider 166 CHECK_NAME = oauth-test-id 167 # AML program to run on the output of the OAuth provider 168 # to decide what rules should apply next. 169 PROGRAM = oauth-output-check 170 # Context to provide for check and program; empty. 171 CONTEXT = {} 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 [aml-program-freeze] 185 DESCRIPTION = "Freeze the account" 186 COMMAND = taler-exchange-helper-measure-freeze 187 FALLBACK = manual-freeze 188 189 [kyc-rule-aggregate-any] 190 ENABLED = YES 191 EXPOSED = YES 192 IS_AND_COMBINATOR = YES 193 OPERATION_TYPE = AGGREGATE 194 NEXT_MEASURES = run-oauth 195 THRESHOLD = EUR:0 196 TIMEFRAME = 1d 197 198 [kyc-legitimization-withdraw] 199 ENABLED = YES 200 EXPOSED = YES 201 IS_AND_COMBINATOR = YES 202 OPERATION_TYPE = WITHDRAW 203 NEXT_MEASURES = run-oauth 204 THRESHOLD = EUR:20 205 TIMEFRAME = 30d 206 207 [kyc-legitimization-balance-high] 208 ENABLED = YES 209 EXPOSED = YES 210 IS_AND_COMBINATOR = YES 211 OPERATION_TYPE = BALANCE 212 NEXT_MEASURES = run-oauth 213 THRESHOLD = EUR:1 214 TIMEFRAME = 1d 215 216 [exchangedb-postgres] 217 CONFIG = "postgres:///talercheck" 218 219 # Account of the EXCHANGE 220 [exchange-account-exchange] 221 PAYTO_URI = "payto://x-taler-bank/localhost/2?receiver-name=2" 222 ENABLE_DEBIT = YES 223 ENABLE_CREDIT = YES 224 225 [exchange-accountcredentials-exchange] 226 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/2/taler-wire-gateway/" 227 WIRE_GATEWAY_AUTH_METHOD = NONE 228 229 [admin-accountcredentials-exchange] 230 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/2/taler-wire-gateway/" 231 WIRE_GATEWAY_AUTH_METHOD = NONE 232 233 234 [coin_eur_ct_1] 235 value = EUR:0.01 236 duration_withdraw = 7 days 237 duration_spend = 2 years 238 duration_legal = 3 years 239 fee_withdraw = EUR:0.00 240 fee_deposit = EUR:0.00 241 fee_refresh = EUR:0.01 242 fee_refund = EUR:0.01 243 rsa_keysize = 1024 244 CIPHER = RSA 245 246 [coin_eur_ct_10] 247 value = EUR:0.10 248 duration_withdraw = 7 days 249 duration_spend = 2 years 250 duration_legal = 3 years 251 fee_withdraw = EUR:0.01 252 fee_deposit = EUR:0.01 253 fee_refresh = EUR:0.03 254 fee_refund = EUR:0.01 255 rsa_keysize = 1024 256 CIPHER = RSA 257 258 [coin_eur_1] 259 value = EUR:1 260 duration_withdraw = 7 days 261 duration_spend = 2 years 262 duration_legal = 3 years 263 fee_withdraw = EUR:0.01 264 fee_deposit = EUR:0.01 265 fee_refresh = EUR:0.03 266 fee_refund = EUR:0.01 267 rsa_keysize = 1024 268 CIPHER = RSA 269 270 [coin_eur_5] 271 value = EUR:5 272 duration_withdraw = 7 days 273 duration_spend = 2 years 274 duration_legal = 3 years 275 fee_withdraw = EUR:0.01 276 fee_deposit = EUR:0.01 277 fee_refresh = EUR:0.03 278 fee_refund = EUR:0.01 279 rsa_keysize = 1024 280 CIPHER = RSA