Releases: chr15k/php-auth-generator
Releases · chr15k/php-auth-generator
0.2.1
0.2.0
[v0.2.0] - 2025-06-27
Changed
- Enhanced JWT header validation to enforce scalar types only (strings, numbers, booleans) for RFC 7515 compliance
- Improved JWT claim validation with better error messages for non-JSON-serializable data
- Updated null header handling - null values are now explicitly ignored rather than converted to empty strings
- Enhanced documentation with comprehensive JWT validation rules and RFC compliance guidelines
- Added detailed explanations of data type requirements for JWT headers vs claims
0.1.3
0.1.2
0.1.1
[v0.1.1] - 2025-06-14
Added
- Added #[SensitiveParameter] attribute to enhance security for password and secret parameters
Changed
- Enhanced type safety by making DTOs readonly
- Updated documentation in README for clearer usage instructions
- Added libsodium suggestion in composer.json for improved cryptographic operations (required for EdDSA support)
0.1.0
[v0.1.0] - 2025-06-13
Added
- Initial release of the HTTP Auth Generator library
- Fluent API for generating authentication tokens
- Support for Basic Authentication tokens
- Support for Bearer tokens with customizable length and prefix
- Support for JWT (JSON Web Tokens) with extensive claim and header options
- Support for multiple JWT signing algorithms (HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES256K, EdDSA)
- Helper methods for formatting tokens for HTTP headers:
toString(),toArray(), andtoHeader() - Comprehensive documentation in README, API cheatsheet, and user guide
- Integration examples for popular HTTP clients (Guzzle, Symfony HTTP, Laravel HTTP)
- Extensive test suite with high code coverage