Some Cleanup of setup.py and documentation in auth

This commit is contained in:
Ferdinand Thiessen 2020-10-30 22:19:16 +01:00
parent 9bbcaa5bc9
commit f60c06bc17
2 changed files with 9 additions and 3 deletions

View File

@ -25,7 +25,7 @@ def login():
Route: ``/auth`` | Method: ``POST``
POST-data: {'userid': string, 'password': string}
POST-data: ``{userid: string, password: string}``
Returns:
A JSON object with `flaschengeist.models.user.User` and created

View File

@ -10,6 +10,7 @@ setup(
packages=find_packages(),
package_data={"": ["*.toml"]},
scripts=["run_flaschengeist"],
python_requires=">=3.6",
install_requires=[
"Flask >= 1.1",
"toml",
@ -18,17 +19,22 @@ setup(
"flask_cors",
"werkzeug",
"python-dateutil",
# Needed for python < 3.7
"backports-datetime-fromisoformat",
],
extras_require={"ldap": ["flask_ldapconn", "ldap3"], "bjoern": ["bjoern"]},
entry_points={
"flaschengeist.plugin": [
# Authentication providers
"auth_plain = flaschengeist.plugins.auth_plain:AuthPlain",
"auth_ldap = flaschengeist.plugins.auth_ldap:AuthLDAP [ldap]",
# Route providers (and misc)
"auth = flaschengeist.plugins.auth:AuthRoutePlugin",
"users = flaschengeist.plugins.users:UsersPlugin",
"roles = flaschengeist.plugins.roles:RolesPlugin",
"balance = flaschengeist.plugins.balance:BalancePlugin",
"schedule = flaschengeist.plugins.schedule:SchedulePlugin",
"mail = flaschengeist.plugins.message_mail:MailMessagePlugin",
"auth_plain = flaschengeist.plugins.auth_plain:AuthPlain",
"auth_ldap = flaschengeist.plugins.auth_ldap:AuthLDAP [ldap]",
],
},
)