Skip to content

v2.3.1#238

Merged
Neunerlei merged 6 commits intomainfrom
development
Nov 2, 2025
Merged

v2.3.1#238
Neunerlei merged 6 commits intomainfrom
development

Conversation

@Neunerlei
Copy link
Collaborator

No description provided.

actions-user and others added 6 commits October 29, 2025 23:43
…te-caching

fix: ensure routes have unique names
* feat(Auth): supercharge LDAP error logging

* chore: adhere to copilot code review suggestions

* docs: clarify usage of equals in LDAP Filter args
@Neunerlei Neunerlei requested a review from Copilot November 2, 2025 05:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors LDAP authentication configuration and implementation with a focus on improved validation, error handling, and code organization. Key changes include extracting LDAP-related logic into dedicated value objects, removing hardcoded default values, and fixing route naming inconsistencies.

  • Refactored LDAP configuration into dedicated value objects (LdapConnectUri, LdapBindCredentials, LdapFilterArgs, LdapAttributeReader) with comprehensive validation
  • Removed default port value (389) from LDAP configuration to support automatic port detection
  • Updated route names to differentiate between GET and POST login endpoints
  • Simplified error logging in ChainedAuthService by removing verbose exception chain details

Reviewed Changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
routes/web.php Updated route names to distinguish GET and POST login routes
config/ldap.php Removed default port value and fixed employeeType attribute key casing
app/Services/Auth/Value/Ldap/LdapFilterArgs.php New value object for LDAP filter arguments with validation
app/Services/Auth/Value/Ldap/LdapConnectUri.php New value object for LDAP connection URI with automatic port detection
app/Services/Auth/Value/Ldap/LdapBindCredentials.php New value object for LDAP bind credentials with password redaction
app/Services/Auth/Value/Ldap/LdapAttributeReader.php New value object for reading LDAP attributes with display name builder integration
app/Services/Auth/Util/LdapUtil.php New utility class for LDAP DN validation and filter value escaping
app/Services/Auth/ShibbolethService.php Updated route reference to use new GET route name
app/Services/Auth/LdapService.php Refactored to use new LDAP value objects with improved error handling
app/Services/Auth/Exception/LdapException.php New exception class for LDAP-specific errors
app/Services/Auth/ChainedAuthService.php Simplified error handling by removing verbose exception chains
app/Http/Controllers/AuthenticationController.php Removed redundant error logging
_documentation/5-Deployment/5-Authentication.md Updated LDAP configuration documentation
_changelog/README.md Formatting improvements and additional release workflow details
.github/workflows/publish-version.yml Removed unused footer title parameter
.github/.hawki-release/send-discord-notification.js Simplified embed message building by removing footer title logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Neunerlei Neunerlei merged commit e1f2723 into main Nov 2, 2025
8 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.

3 participants