NAME
ttypt/auth.h - Sessions, registration, ownership, and POSIX user/group operations for axil.
SYNOPSIS
#include <ttypt/xy-mod.h>
#include <stddef.h>
Functions
Extract and validate a session token from a raw cookie value.
Resolve the username owning a session token.
Resolve the username of the session on a client fd.
Check a username/password pair against the stored credential.
Require a login, emitting the login challenge when absent.
Retrieve the signed TTY ticket for the authenticated user on fd.
Detailed Description
Sessions, registration, ownership, and POSIX user/group operations for axil.
Caller-facing XY hook declarations. Implementers must NOT include this header. Direct configuration lives in auth-config.h and internal outcome dispatches live in auth-outcome.h.
Function Documentation
XY_DECL (int , auth_get_tty_ticket , int , fd , char * , out , size_t , len )
Retrieve the signed TTY ticket for the authenticated user on fd. Non-zero (1) on success (writes NUL-terminated ticket into out), 0 on failure or absent module.
XY_DECL (int , auth_password_matches , const char * , username , const char * , password )
Check a username/password pair against the stored credential. Non-zero on success, 0 on failure or absent module.
Author
Generated automatically by Doxygen for axil-auth from the source code.