You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+94-71Lines changed: 94 additions & 71 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,18 @@
1
1
# TrueNamePath - Context-Aware Identity Management API
2
2
3
-
**University Final Project (CM3035 Advanced Web Design)**
3
+
**University Final Project (CM3035 Advanced Web Development)**
4
4
5
-
## Quick Start
5
+
## Overview
6
6
7
-
This project implements a context-aware identity management system where users control how their names are presented to different audiences. The system addresses real discrimination issues while maintaining privacy and GDPR compliance.
7
+
TrueNamePath is an innovative context-aware identity management system that addresses name-based discrimination in digital environments. The system allows users to control how their names are presented to different audiences while maintaining privacy and GDPR compliance.
8
+
9
+
### Problem Statement
10
+
11
+
Many individuals face discrimination based on their names in professional and social contexts. Traditional identity systems present static name information regardless of context, potentially exposing users to bias. This project demonstrates a technical solution that enables dynamic, context-appropriate name presentation while preserving user privacy and control.
12
+
13
+
### Technical Innovation
14
+
15
+
The system implements OAuth/OIDC-compliant context-aware name resolution, allowing external applications to receive appropriate name variants based on user-defined contexts and consent preferences. This represents a novel application of existing identity provider patterns to address social discrimination issues.
8
16
9
17
## Prerequisites
10
18
@@ -26,10 +34,10 @@ This project uses official Supabase SSR (Server-Side Rendering) patterns for aut
26
34
27
35
### 1. Prerequisites
28
36
29
-
Ensure you have a `.env.local` file in the project root with the following Supabase environment variables correctly configured. These are required for both the Next.js application and the user creation script.
37
+
Create a `.env.local` file in the project root with your Supabase project credentials. You'll need to create a Supabase project and obtain these values from your project dashboard.
- ✅ **User-Defined Contexts**: Flexible context system without hardcoded values
153
+
- ✅ **Privacy-by-Design**: GDPR-compliant audit logging and consent management
154
+
- ✅ **Multi-Persona Interface**: Demonstration of different identity presentations
147
155
148
-
### API Layer
156
+
### API Architecture
149
157
150
-
- ✅ REST API endpoints (names, consents, audit)
151
-
- ✅ JSend format standardization
152
-
- ✅ JWT authentication integration
153
-
- ✅ Comprehensive API testing
158
+
- ✅ **RESTful Endpoints**: Complete API for names, contexts, and consent management
159
+
- ✅ **Standardized Responses**: JSend format for consistent API responses
160
+
- ✅ **Secure Authentication**: JWT-based API authentication
161
+
- ✅ **Comprehensive Testing**: Full test coverage for all API endpoints
154
162
155
-
##AI-Driven Development Workflow
163
+
### Demo Applications
156
164
157
-
This project uses a sophisticated multi-agent AI system for efficient development. The system coordinates specialized agents to handle planning, implementation, testing, and documentation with optimal parallelization.
165
+
- ✅ **HR Application**: Professional context demonstration
- ✅ **OAuth Integration**: Complete OAuth flows for external applications
158
168
159
-
### Quick Command Reference
169
+
##Academic Project Context
160
170
161
-
Custom slash commands automate the development workflow:
171
+
This project was developed as the final project for the Bachelor of Computer Science degree at the University of London (CM3035 Advanced Web Development), demonstrating:
162
172
163
-
-**`/status`** - Check comprehensive project status
164
-
-**`/plan [step]`** - Create detailed implementation plan
165
-
-**`/review [plan]`** - Critical review of plans or code
166
-
-**`/execute [step]`** - Coordinate implementation with agent deployment
167
-
-**`/debug [issue]`** - Investigate and troubleshoot problems
168
-
-**`/research [topic]`** - Deep codebase analysis
169
-
-**`/document [work]`** - Create professional documentation
173
+
-**Modern Web Development**: Advanced React/Next.js patterns and TypeScript implementation
174
+
-**Authentication Systems**: Professional-grade authentication and authorization
175
+
-**Technical Innovation**: Novel application of OAuth/OIDC for context-aware identity management
176
+
-**Quality Assurance**: Comprehensive testing strategies and quality assurance practices
177
+
-**Privacy Engineering**: GDPR compliance and privacy-by-design principles
178
+
-**Full-Stack Development**: Complete system from database design to user interface
170
179
171
-
### Example Workflow
180
+
The project emphasizes technical excellence, innovative problem-solving, and professional software engineering practices suitable for academic evaluation and portfolio presentation.
172
181
173
-
```bash
174
-
# Standard development flow
175
-
/status # Check current state
176
-
/plan 9 # Plan Step 9 (signup page)
177
-
/review step-09 # Review the plan
178
-
/execute 9 # Execute with agent coordination
179
-
/document 9 # Document completion
180
-
181
-
# Troubleshooting flow
182
-
/debug login redirect not working
183
-
/research authentication middleware
184
-
```
182
+
## Technologies Used
185
183
186
-
### Agent System Benefits
184
+
### Frontend
187
185
188
-
-**Parallel Development**: Multiple agents working simultaneously on independent tasks
189
-
-**Quality Assurance**: Continuous testing and code review during development
190
-
-**Comprehensive Planning**: Detailed analysis before implementation begins
191
-
-**Academic Integration**: AI agents understand university project requirements
186
+
-**Next.js 15** - React framework with App Router
187
+
-**React 19** - Modern React with concurrent features
188
+
-**TypeScript** - Type-safe development
189
+
-**Mantine UI** - Professional component library
190
+
-**SWR** - Data fetching and caching
192
191
193
-
See **CLAUDE.md** for complete documentation of the agent system, workflow process, and available agents.
192
+
### Backend & Database
194
193
195
-
## Academic Project Context
194
+
-**Supabase** - PostgreSQL database with real-time features
195
+
-**PostgreSQL** - Relational database with custom functions
196
+
-**Supabase Auth** - Authentication with SSR support
197
+
198
+
### Testing & Quality
199
+
200
+
-**Playwright** - End-to-end testing framework
201
+
-**Vitest** - Unit testing framework
202
+
-**ESLint & Prettier** - Code quality and formatting
203
+
204
+
### DevOps & Tooling
205
+
206
+
-**Turborepo** - Monorepo build system
207
+
-**Yarn Workspaces** - Package management
208
+
-**Vercel** - Deployment platform for demo applications
209
+
210
+
## Getting Started
211
+
212
+
To run this project locally, you'll need to:
213
+
214
+
1. Set up a Supabase project and configure environment variables
215
+
2. Run the database migrations
216
+
3. Create demo users for testing
217
+
4. Start the development server
218
+
219
+
Follow the detailed setup instructions in the Authentication Setup section above for complete configuration steps.
220
+
221
+
## Demo Applications
196
222
197
-
This is a university final project demonstrating:
223
+
The project includes two deployed demo applications that showcase different identity contexts:
198
224
199
-
- Advanced web development with modern React/Next.js patterns
200
-
- Professional authentication and authorization implementation
201
-
- Context-aware identity management innovation
202
-
- Comprehensive testing and quality assurance practices
203
-
- GDPR compliance and privacy-by-design principles
225
+
-**Demo HR Application**: Demonstrates professional identity presentation in corporate environments
226
+
-**Demo Chat Application**: Shows casual identity presentation in social contexts
204
227
205
-
The implementation focuses on academic demonstration rather than production deployment, emphasizing code quality, documentation, and educational value.
228
+
Both applications integrate with the main TrueNamePath API using OAuth flows to demonstrate context-aware name resolution in real-world scenarios.
0 commit comments