aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2023-05-12 21:47:54 -0400
committerHolden Rohrer <hr@hrhr.dev>2023-05-12 21:47:54 -0400
commitca534003b3f07d2045dc1cbb6cddf60223fd3385 (patch)
tree7f126e65abeb35939c13a81c9947acaaf101248d /README
initial commit
Diffstat (limited to 'README')
-rw-r--r--README41
1 files changed, 41 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..67be190
--- /dev/null
+++ b/README
@@ -0,0 +1,41 @@
+# weblogin
+
+This is a small flask webserver that returns a JSON web token for form
+requests at /auth, submitted by a user of the /login.html page.
+A GET request to /logout will remove the JSON web token cookie (the
+cookie auth is used for storage).
+
+## Requirements
+
+- Python 3
+- flask
+- passlib
+- python-jwt
+
+## License
+
+Licensed under the MIT license.
+It just isn't a big enough piece of software to justify anything
+more restrictive.
+
+## Hello World
+
+To try the code out yourself,
+install the `nginx.example.conf` as /etc/nginx/nginx.conf and
+install the `src/login.html`
+
+```sh
+systemctl enable --now nginx
+python src/login.py webpass test.pem
+```
+Now connect to localhost, and the username is hr and the password is
+soupsoup.
+
+## Other stuff around here
+
+`weblogin.ini` is an ini file for compatibility with uwsgi that should
+help making that setup easier if you plan to use uwsgi.
+And the Makefile and the specfile are for building an RPM for Fedora
+(may also work on CentOS/RHEL).
+To use those, you need some make program and rpmbuild installed.
+I might publish the RPM at some point.