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.1.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

kisee-19.11.1-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kisee-19.11.1.tar.gz
Algorithm Hash digest
SHA256 68b89af756d54eae27c9e53f0041bf66e24e1b50f4716261e741e88568accef1
MD5 77afc1a94d3cabc5f2b3ce6233e6f7c2
BLAKE2b-256 9e813e63e37a2e7fee5f1effa4ede40bbcd9da4cc0122afdb3ef3cb4d516fce9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for kisee-19.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eae418ea5fbd98b3c7723321233e82e7335a8c89dd84b129a563ad571297b5f5
MD5 456095ca5908a8818b12ce782bb9a8d6
BLAKE2b-256 92b249ebb2e6ac381185a78005b0ad2d6dbbf6ae3ed9163a37da26415ffa1033

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