REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
net::auth Namespace Reference

The net::auth namespace collects any security-related measures to harden the LUCIDAC device in the wild and open Ethernet/IPv4 land. More...

Classes

class  AuthentificationContext
 A thin wrapper around the username. More...
 
struct  DeviceLock
 Facilities to lock a LUCIDAC device by a single user. More...
 
class  FailToBan
 Simple failed login backoff to avoid login brute force attempts. More...
 
struct  Gatekeeper
 Actually carries out login. More...
 
class  RemoteIdentifier
 Some basic information about the remote station. We interpret 0.0.0.0 als a local terminal. More...
 
class  UserPasswordAuthentification
 A simple plaintext Username+Password authentification scheme backed against the EEPROM UserSettings. More...
 

Typedefs

using User = std::string
 

Enumerations

enum class  SecurityLevel { RequiresAdmin , RequiresLogin , RequiresNothing }
 Simple security levels for the message handlers. More...
 

Functions

 JSON_CONVERT_SUGAR (UserPasswordAuthentification)
 
 JSON_CONVERT_SUGAR (Gatekeeper)
 

Detailed Description

The net::auth namespace collects any security-related measures to harden the LUCIDAC device in the wild and open Ethernet/IPv4 land.

These measures are not supposed to be integrated into REDAC because it is supposed to be a trusted/controlled network.

Typedef Documentation

◆ User

using net::auth::User = std::string

Definition at line 37 of file auth.h.

Enumeration Type Documentation

◆ SecurityLevel

enum class net::auth::SecurityLevel
strong

Simple security levels for the message handlers.

Enumerator
RequiresAdmin 
RequiresLogin 
RequiresNothing 

Definition at line 35 of file auth.h.

Function Documentation

◆ JSON_CONVERT_SUGAR() [1/2]

net::auth::JSON_CONVERT_SUGAR ( Gatekeeper )

◆ JSON_CONVERT_SUGAR() [2/2]

net::auth::JSON_CONVERT_SUGAR ( UserPasswordAuthentification )