auth/backends/README.py

22 lines
944 B
Python
Raw Normal View History

2023-12-25 00:27:23 +11:00
"""
Here are the headers that every .py in this folder should implement.
Each file is free to define its own set of config options that will be passed in AFTER the file is imported, under the name "config". It is generally assumed that this will be a dict, but there is no strict requirement, other than "it must be a valid json value".
The init() function will be called with no arguments after config is passed in.
the *token functions are about access tokens, as distinct from invite tokens.
2023-12-28 23:51:38 +11:00
The backend will also have access to utils.py, under the name utils and models.py under the name models.
2023-12-25 00:27:23 +11:00
"""
def init(): pass
def load_user(username): pass
def save_user(user): pass
def delete_user(user): pass
def load_token(tokenid): pass
2023-12-25 00:27:23 +11:00
def load_tokens(user): pass
def save_token(token): pass
def delete_token(token): pass
def load_invite(inviteid): pass
2023-12-25 00:27:23 +11:00
def load_invites(user): pass
def save_invite(token): pass
def delete_invite(token): pass