📲Receive the Verifier data with a webhook in your backend
{"event": "VERIFICATION", "id": "1234", "presented": "2022-11-15T14:59:43Z", "vc_type": ["Over13"], "verification": true}from flask import Flask, jsonify, request
app = Flask(__name__)
app.config.update(SECRET_KEY = "abcdefgh") # Flask key
verifier_secret = 'c8f90f24-5506-11ed-b15e-0a1628958560' # take the client_secret from the platform https://talao.co
@app.route('/webhook', methods=['POST'])
def dapp_webhook() :
if request.headers.get('key') != verifier_secret :
return jsonify('Forbidden'), 403
data = request.get_json()
if data['event'] == 'VERIFICATION' : # this is an event to catch a digest of the credential
print(data)
return jsonify('ok')
if __name__ == '__main__': # use Gunicordn for production
IP = "127.0.0.1"
app.run( host = IP, port=4000, debug =True)PreviousVerify the age of your users (+13, +18) in a dAppNextOn-chain and off-chain access with TezID
Last updated