py-auth-micro

A wrapper around pyjwt


Keywords
JWT, jwt-auth, python, tortoise-orm, user-management
License
MIT
Install
pip install py-auth-micro==0.1.7

Documentation

py_auth_micro

https://app.codacy.com/project/badge/Grade/199fd463ff1a487eb206a2afbfb25168

Introduction

py_auth_micro is a small identity provider library which can use an LDAP/AD as upstream Identity Provider and can also store Users Localy.

The Authentication and Authorization is done via ID-Tokens and Access-Tokens. The ID-Tokens are given out after a User successfully logged in. With this ID-Token a User can request an Access-Token which he can send to other (Micro-)Services to gain access According to his Permissions.

The Tokens are JWT Tokens which can either be signed with an symetric HMAC-Secret or with an RSA-Key.