Skip to main content

HTTP server managing identities.

Project description

Kisee — Identity Provider Server

Documentation Status Package on PyPI Build status

Name

The name "Kisee", inspired from "KISS" ("Keep it simple, stupid.") is spoken as the french phrase "Qui c'est ?", [kis‿ɛ].

Overview

Kisee is an API giving JWTs in exchange for valid usernames/password pairs. That's it.

Kisee is better used as a backend of the Pasee identity manager: Pasee handle groups and can handle multiple identity backends (one or many Kisee instances, twitter, facebook, ...).

Kisee can use your existing database (or use a dedicated one) to query the username and passwrds if you're willing to implement a simple Python class to query it, so Kisee can query anything: LDAP, a flat file, a PostgreSQL database with a strange schema, whatever.

Quick start

$ pip install kisee
$ kisee --settings example-settings.toml

This starts Kisee with a very dumb backend, just so you can play.

The dumb backend works like this:

  • Any user exists.
  • Any password less or equal than 4 characters will be considered wrong.
  • Any other password will pass.

So now we can query it:

$ curl http://0.0.0.0:8140/jwt/ -XPOST -d '{"login": "John", "password": "secure"}'
{
    "_type": "document",
    "_meta": {
        "url": "/jwt/",
        "title": "JSON Web Tokens"
    },
    "tokens": [
        "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJpc3MiOiJleGFtcGxlLmNvbSIsInN1YiI6IkpvaG4iLCJleHAiOjE1NTMyNzQyNjEsImp0aSI6IjlXb0piV1g2OGpmQVo5N1dNRWRjNDQifQ.iYAgA-018VHQo9tWLfk7XIxtrDKYk_CTWhHXo7bMBGDz9HGKRIwV_mh0Wla6tf6z-_JH5KRTQRnQl5DLLlIelg"
    ],
    "add_token": {
        "_type": "link",
        "action": "post",
        "title": "Create a new JWT",
        "description": "POSTing to this endpoint create JWT tokens.",
        "fields": [
            {
                "name": "login",
                "required": true
            },
            {
                "name": "password",
                "required": true
            }
        ]
    }
}

Read the docs: https://kisee.readthedocs.io

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kisee-19.11.0.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

kisee-19.11.0-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

Details for the file kisee-19.11.0.tar.gz.

File metadata

  • Download URL: kisee-19.11.0.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for kisee-19.11.0.tar.gz
Algorithm Hash digest
SHA256 4b1ac4d1bd2414985aaa2c50fe103e04ae7bf0f7fb173ee58a426cbddbf3ffcd
MD5 b6cfc536e6d50990976c82f2826e4284
BLAKE2b-256 f9797fb8b752131cd454a68171a272fce0266c5cf92289067eb15cd6f2f36e45

See more details on using hashes here.

File details

Details for the file kisee-19.11.0-py3-none-any.whl.

File metadata

  • Download URL: kisee-19.11.0-py3-none-any.whl
  • Upload date:
  • Size: 33.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for kisee-19.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2de699532e1130842a6dc168277d055a6bee83476f2ac7c029e276d7282e93f0
MD5 20129b594830623677fedd2c7c948cd7
BLAKE2b-256 47f4040a8acf5332d4c0ece64b507f68973d422e81dbd2d52f316ee674662a49

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page