📋 Service Information
Service Name: Authentication Service
Port: 8050
Base URL: http://localhost:8050
Description: Handles user authentication, registration, password management, and email notifications
Features: JWT tokens, email integration (Mailtrap), user types (SIMPLE_USER, VIP_USER), advanced search
📧 Email Integration
Professional HTML email templates with Mailtrap integration for forgot/reset password functionality
🔑 JWT Authentication
Secure token-based authentication with user claims and role-based access
👥 User Types
Support for SIMPLE_USER and VIP_USER types with different privileges
🔍 Advanced Search
JSON-based search with pagination, filtering, and sorting capabilities
Employee Login
Authenticate employee/registration users and receive JWT token
📝 Request Example:
📄 Request Body:
📤 Response:
Forgot Password
Send password reset email to employee/registration users
📝 Request Example:
Reset Password
Reset password using token from email
📝 Request Example:
📌 Query Parameters:
token - Reset token from email
newPassword - New password
Web User Registration
Register new web users with user type support
📝 Request Example:
📄 Request Body:
📌 User Types:
SIMPLE_USER - Basic user privileges
VIP_USER - Enhanced user privileges
Web User Login
Authenticate web users and receive JWT token with user details
📝 Request Example:
📄 Request Body:
List Web Users
Get list of all web users with basic information
📝 Request Example:
Advanced Search
Search web users with JSON-based criteria and pagination
📝 Request Example:
📄 Request Body:
Paginated List
Get paginated list of web users with query parameters
📝 Request Example:
📌 Query Parameters:
page - Page number (default: 0)
size - Page size (default: 10)
searchTerm - Search in name, email, phone
gender - Filter by gender (MALE, FEMALE)
userType - Filter by user type (SIMPLE_USER, VIP_USER)
isActive - Filter by active status (true, false)
Web User Forgot Password
Send password reset email to web users
📝 Request Example:
Web User Reset Password
Reset password using token from email
📝 Request Example:
📌 Query Parameters:
token - Reset token from email
newPassword - New password
📧 Email Features
Mailtrap Integration: Professional HTML email templates with responsive design
Templates: Forgot password and password reset confirmation emails
Security: 30-minute token expiry, one-time use tokens, encrypted passwords
Personalization: User name personalization and security tips