Skip to content

v1.2.1

Choose a tag to compare

@coagus coagus released this 25 Sep 02:21
· 102 commits to main since this release

Release v1.2.1 - Authorization Header Case Sensitivity Fix

Main Changes

🔧 Authorization Token Validation Enhancement

  • Improved token validation in the validateSession() method of the Auth class
  • Added case-insensitive header support for authorization tokens, now recognizing both 'Authorization' and 'authorization' headers
  • Enhanced flexibility and robustness in token handling across different client implementations

Files Modified

  • src/Auth.php

Impact

This release improves the compatibility of the authentication system by supporting different header case variations that clients might send. This ensures that authorization tokens are properly recognized regardless of how the client formats the header name.

Technical Details

The change allows the API to handle authorization headers in a case-insensitive manner, making it more resilient to different client implementations and HTTP library variations that might send headers with different casing.

Migration Notes

No breaking changes or migration required. This is a backward-compatible improvement that enhances existing functionality.