HTTP server managing identities.
Project description
Kisee — Identity Provider Server
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68b89af756d54eae27c9e53f0041bf66e24e1b50f4716261e741e88568accef1 |
|
MD5 | 77afc1a94d3cabc5f2b3ce6233e6f7c2 |
|
BLAKE2b-256 | 9e813e63e37a2e7fee5f1effa4ede40bbcd9da4cc0122afdb3ef3cb4d516fce9 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | eae418ea5fbd98b3c7723321233e82e7335a8c89dd84b129a563ad571297b5f5 |
|
MD5 | 456095ca5908a8818b12ce782bb9a8d6 |
|
BLAKE2b-256 | 92b249ebb2e6ac381185a78005b0ad2d6dbbf6ae3ed9163a37da26415ffa1033 |