Simple HTTP Auth designed
This commit is contained in:
15
specs/005-simple-http-auth/data-model.md
Normal file
15
specs/005-simple-http-auth/data-model.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Data Model: Simple HTTP Auth
|
||||
|
||||
## Entities
|
||||
|
||||
### Passphrase
|
||||
- **Description**: A secret string used for authentication.
|
||||
- **Attributes**:
|
||||
- `value`: string (The actual passphrase, stored securely in .env)
|
||||
|
||||
### Session
|
||||
- **Description**: Represents a period of continuous interaction between the user and the SPA, during which access is maintained.
|
||||
- **Attributes**:
|
||||
- `id`: string (Unique identifier for the session)
|
||||
- `isAuthenticated`: boolean (Indicates if the session is authenticated)
|
||||
- `expiry`: datetime (Timestamp when the session expires, if applicable)
|
||||
Reference in New Issue
Block a user