mirror of
https://github.com/enpaul/keyosk.git
synced 2024-11-05 06:07:06 +00:00
Ethan Paul
71d6ed4e3c
Document token model Fix typo accessing incorrect crypto hash in passlib Fix cyclical import around domain admin settings Deprecate unused token usage enum Document constants module Fix typing errors in fields module Fix creation order of database models Add uuid default factory for uuid field
19 lines
358 B
Python
19 lines
358 B
Python
"""Shared types, enums, and data containers"""
|
|
import enum
|
|
from typing import Dict
|
|
from typing import Union
|
|
|
|
|
|
Extras = Dict[str, Union[int, float, bool, str, None]]
|
|
|
|
|
|
TokenClaims = Dict[str, Union[str, int, bool, Dict[str, int]]]
|
|
|
|
|
|
@enum.unique
|
|
class StorageBackend(enum.Enum):
|
|
"""Supported storage backends"""
|
|
|
|
SQLITE = "sqlite"
|
|
MARIA = "maria"
|