Giter VIP home page Giter VIP logo

valorem-vis's Introduction

Valorem Vis

"the value you want"

Dead simple Flask key-value storage using redis. Valorem Vis is not tested for security and should only be used in development environments for experiment purposes.

How to use

  1. Setup Redis
  2. git clone https://github.com/spectralsun/valorem-vis.git
  3. cd valorem-vis
  4. virtualenv env
  • Note: you will need to specify python 2.X if python 3.X is default on your system (example: "virtualenv -p /usr/bin/python2 env")
  1. source env/bin/activate
  2. pip install -r requirements.txt
  3. cp config.py.dist config.py
  4. python manage.py runserver

Interaction

Uploading

using the store endpoint of the Directory Provider, you can upload a PGP Public Key and the pgp key signature. The expected upload format is:

{
    "email": "<validly formatted email>"
    "pgp": "<base64 encoded pgp public key>.<pgp signature>"
}

All the uploading to the Directory Provider is handled by GET requests. Example:

http://<ip or dns>:<port>/store?email=<validly formatted email>&pgp=<pgp key>.<pgp signature>

The Directory Provider store the PGP information with the Persona information in the keystore using the email as the key. The Directory will also store the same information using the pgp key as the key value store key.

If anything other than email and pgp are sent to the directory provider, it will return a 400 error. If an incorrectly formatted backed identity assertion is uploaded, it will return a 400 as well.

Searching

Using the search endpoint of the directory provide, you can query the keyvalue store for the backed identity assertion and pgp public key by either Email or PGP Public key. An example is:

http://<ip or dns>:<port>/search?email=<validly formatted email>

to search by email. To search by pgp public key:

http://<ip or dns>:<port>/search?pgp=<pgp public key>

If the directory provider cannot find any information associated with the email or the pgp key, it will return a 404 error.

If anything other than pgp or email , it will return a 400 error.

valorem-vis's People

Contributors

irdan avatar nobane avatar stumped2 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.