Skip to content

Demo app using Passbase Python server-side library.

Notifications You must be signed in to change notification settings

passbase/python-demo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Official Passbase Django Python Demo

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.

Setup

  1. Clone this repository to your machine
  2. Create a virtualenv with virtualenv env and source env/bin/activate. You can find here how to do it if necessary.
  3. Install dependencies by running pip3 install -r requirements.txt in the root folder
  4. Create a .env. file for the environment variables containing the following: PASSBASE_SECRET_KEY= You can see an example file .env.example
  5. Run the migrations with python3 manage.py migrate
  6. Exchange YOUR_PUBLISHABLE_API_KEY with your own publishable API key in home.html file on line 32

Run the App

You can start the App by running the following command

python3 manage.py runserver

Access the web app in browser: http://localhost:8000/

API

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" 
}

About

Demo app using Passbase Python server-side library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published