I've written a collection of html, css and javascript which behave approximately as intended. There is currently no "back end" and no front end framework. So far, so good.
I would now like to add a simple username/password authentication mechanism. At some point this would be backed by sqlite or mongo, but right now I'd be happy with a text file containing exactly one username/password hash combination.
However I cannot find any guidance on how to do this without first pulling in an enormous dependency. I believe wordpress or django would provide authentication. Express and node also appears to be a viable combination. All of these want to take over control of the entire site though, which seems excessive for a log in form.
How can I go about sending a username/password pair in exchange for a token, while only depending on whatever library handles the authentication itself?
I would now like to add a simple username/password authentication mechanism. At some point this would be backed by sqlite or mongo, but right now I'd be happy with a text file containing exactly one username/password hash combination.
However I cannot find any guidance on how to do this without first pulling in an enormous dependency. I believe wordpress or django would provide authentication. Express and node also appears to be a viable combination. All of these want to take over control of the entire site though, which seems excessive for a log in form.
How can I go about sending a username/password pair in exchange for a token, while only depending on whatever library handles the authentication itself?