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