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