Skip to content

tty-pt/ndc-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ndc-auth

Authentication module for NDC — session management, user registration, login, and ownership helpers.

Features

  • User registration and login with bcrypt password hashing
  • Session tokens via cookie
  • Ownership tracking (chown when root, owner-file when not)
  • Configurable via environment variables

Configuration

Variable Default Description
NDC_AUTH_GID 67 Group ID for new users
NDC_AUTH_GROUP www Group name for new users
NDC_AUTH_COOKIE QSESSION Session cookie name

HTTP Endpoints

Method Path Description
POST /auth/login Login
POST /auth/register Register
GET /auth/api/session Get current username
* /auth/logout Logout
* /auth/confirm Confirm registration

Install

make
sudo make install

Then load in your NDC module:

ndx_load("ndc-auth");

About

An authentication module for NDC

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors