For twilio configuration we need to set such required envs
BARONG_TWILIO_ACCOUNT_SID
, which acts as a twilio usernameBARONG_TWILIO_SERVICE_SID
, which acts as a twilio passwordBARONG_TWILIO_PHONE_NUMBER
, virtual phone numbers which will give you instant access to local, national, mobile, and toll-free phone numbersWe have ability to set twilio with 3 different ways
BARONG_PHONE_VERIFICATION == "twilio_sms"
If you choose phone verification as twilio sms we will use send_sms API call
Also you can add your own template for sms using BARONG_SMS_CONTENT_TEMPLATE
BARONG_PHONE_VERIFICATION == "twilio_verify"
In this case we will use twilio Verify API call
There are a lot of benefits of using Verify API like you can validate users via voice
One verification service can be used to send multiple verification tokens, it is not necessary to create a new service each time, so you can set BARONG_TWILIO_SERVICE_SID
at onceBARONG_PHONE_VERIFICATION == "mock"
With this type of verification all the numbers will be accepted and validated as a right code for any given numberPROVIDER: "Google"
GOOGLE_STORAGE_ACCESS_KEY_ID
GOOGLE_STORAGE_SECRET_ACESS_KEY
Learn more about creating Access/Secret keysPROVIDER: "AWS"
AWS_SIGNATURE_VERSION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
REGION
ENDPOINT
PATH_STYLE
PROVIDER
ALIYUN_ACCESSKEY_ID
ALIYUN_ACCESSKEY_SECRET
ALIYUN_OSS_BUCKET
ALIYUN_REGION_ID
ALIYUN_OSS_ENDPOINT
reCAPTCHA is a CAPTCHA-like system designed to establish that a computer user is human (normally in order to protect websites from bots) and, at the same time, assist in the digitization of books or improve machine learning.
You can learn more about how to create RECAPTCHA_SECRET_KEY
, RECAPTCHA_SITE_KEY
in this article
Pass
routes will never be checked by AuthZ endpoint and will be available without session requirement. On Block
routes user always will get 401, it doesn't depend on a session / role / ip / etc
You need to put whitelisted (public) routes for pass object and blacklisted routes for block in authz_rules.yml
rules:
pass:
- api/v2/barong/identity
- api/v2/peatio/public
- api/v2/ranger/public
- api/v2/applogic/public
block:
- api/v2/barong/management
- api/v2/peatio/managemen
We can customize barong configuration as we want
activation_requirements:
email: 'verified'
state_triggers:
banned:
- ban
- fraud
deleted:
- delete
locked:
- suspicious
- lock
document_types:
- Passport
- Identity card
- Driver license
- Utility Bill
- Residental
- Institutional