This Website shows an example integration of the Passbase HTML + JS client-side library and Python server-side library. Before you try to run the website, please sign up on our developer platform and use your own publishable and secret API keys, which you can find in the API settings section.
- Clone this repository to your machine
- Create a virtualenv with
virtualenv envandsource env/bin/activate. You can find here how to do it if necessary. - Install dependencies by running
pip3 install -r requirements.txtin the root folder - Create a
.env.file for the environment variables containing the following:PASSBASE_SECRET_KEY=You can see an example file.env.example - Run the migrations with
python3 manage.py migrate - Exchange
YOUR_PUBLISHABLE_API_KEYwith your own publishable API key in home.html file on line 32
You can start the App by running the following command
python3 manage.py runserver
Access the web app in browser: http://localhost:8000/
You can also see the server side library in action my sending a POST request to http://localhost:8000/webhooks/passbase with a JSON body and a valid identityAccessKey.
Body Payload:
{
"key": "identityAccessKey"
}