Skip to content

Feat: Implement core authentication system (Register, Login, Logout, Forgot Password) - #160

Merged
BibaltiK merged 63 commits into
masterfrom
develop
Jan 16, 2026
Merged

Feat: Implement core authentication system (Register, Login, Logout, Forgot Password)#160
BibaltiK merged 63 commits into
masterfrom
develop

Conversation

@BibaltiK

Copy link
Copy Markdown
Collaborator

Description

This PR introduces the complete authentication layer for the application. The following endpoints and functionalities have been implemented:

  • Registration: New user account creation with secure password hashing using password_hash().
  • Login: Credential verification and session management (or JWT/Token generation).
  • Logout: Secure session termination and token invalidation.
  • Password Recovery: Implementation of the "Forgot Password" workflow, including email request and reset logic.
  • Validation: Robust server-side validation for all inputs (email format, password strength, unique constraints).
  • Security: Middleware implementation to protect routes and prevent unauthorized access.

Motivation and Context

This change is required to establish a secure user management system. It serves as the foundation for all user-specific features and ensures that private data is only accessible to authenticated users.

How Has This Been Tested?

  • Manual API Testing: All endpoints were verified using Postman/Insomnia to ensure correct status codes and JSON responses.
  • Unit/Feature Tests: Automated tests were written using PHPUnit to cover the authentication logic and validation rules.
  • Integration Testing: Verified the full user lifecycle (Register -> Login -> Access Protected Route -> Logout) in the local development environment.
  • Database Verification: Confirmed that passwords are encrypted and user records are correctly stored/updated in the database.

Screenshots (if appropriate):

(Optional: Add screenshots of your Postman results or successful test suite execution here)

Types of changes

  • Feature
  • Bug fix
  • Refactor
  • Change
  • Chore
  • Style
  • Docs
  • Test

Checklist:

  • Contributing Guide was read.
  • If change in a documentation required:
    • Documentation was adjusted (API documentation and README updated)
  • Tests added to cover changes

- Optimized Docker management logic and reset levels
- Added automated OpenAPI generation to setup routine
- Streamlined README setup steps using the management script
- Added unsupported script disclaimer
* initial with Auth

* bump github actions

* -

* -

* -

* -

* -

* downgrad notify

* validate security Schemes

* fix deploy uri

* change SwaggerUI Title

* add Account Role Enum

* implements last aktivity updater

* change Auth Responsetyp to unauthorized

* add version to composer

* Bump

* remove version from composer

* add version to constants

* implements Logout Endpoint

* implements authorized validation

* Implements ErrorHandler with Logger

* change route implementation and fix any routes

* bump php 8.3 to 8.4.16

create new composer.lock

create new composer.lock

create new composer.lock

setting php version

setting php version

setting php version

setting php version

worklow optimized

worklow optimized

worklow optimized

* refactor clone readonly class with new parameter

* add dev url for webhook

* add dev url for webhook

* add dev url for webhook

* add dev url for webhook

* fix wotkflow

* fix phpunit config

* rewrite script with AI

* rewrite for php 8.4

* reorganisation

* Changes for property hook

* refactor: improve bin/hackathon CLI and update documentation

- Optimized Docker management logic and reset levels
- Added automated OpenAPI generation to setup routine
- Streamlined README setup steps using the management script
- Added unsupported script disclaimer

* bump checkout and rsync actions

* fix package for deployment

* -

* bump action script

* implements Property Hook AccountAccessAuth

* implements Property Hook AccountActivation

* implements Property Hook Token

* rename Method

* moved enum

* -

* refactor

* refactor magic string

* refactor magic string

* bumps

* add required gitkeep

* refactor: finalize management CLI, fix volume detection and preserve .gitkeep files

* refactor: change for php 8.4

* fix: code quali

* refactor: change namespace

* add build deployment

* fix: Deploy Name
@BibaltiK
BibaltiK merged commit 91ef8dd into master Jan 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant