19 Commits

Author SHA1 Message Date
e8ffec6b7e updated hws to use new hlog and ezconf 2026-02-25 22:17:25 +11:00
563908bbb4 updated hws.ThrowError to not return an error and log it to console instead
fixed errors_test

fixed tests
2026-02-03 18:43:31 +11:00
cd29f11296 added glob matching for ignored paths in hws 2026-02-01 19:42:50 +11:00
596a4c0529 fixed stacktrace 2026-01-26 21:48:18 +11:00
ed3bc4afb0 added stacktrace to error logging 2026-01-26 21:45:53 +11:00
2c9de70018 fixed bug in NewMiddleware 2026-01-26 21:38:02 +11:00
5781aa523c added a notify system 2026-01-26 00:23:46 +11:00
0c3d4ef095 middleware can only be added once 2026-01-24 16:35:17 +11:00
2f49063432 added multiple method support for routes 2026-01-24 14:44:38 +11:00
378bd8006d updated hws: expanded error page functionality 2026-01-23 12:33:13 +11:00
0ceeb37058 added ezconf and updated modules with integration 2026-01-13 21:18:35 +11:00
da8e3c2d10 fixed wiki links 2026-01-13 13:49:21 +11:00
51045537b2 updated version numbers 2026-01-13 13:40:25 +11:00
bdae21ec0b Updated documentation for JWT, HWS, and HWSAuth packages.
- Updated JWT README.md with proper format and version number
- Updated HWS README.md and created comprehensive doc.go
- Updated HWSAuth README.md and doc.go with proper environment variable documentation
- All documentation now follows GOLIB rules format

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-13 13:37:37 +11:00
8c2ca4d79a removed trustedhost from hws config 2026-01-13 11:32:29 +11:00
423a9ee26d updated docs 2026-01-11 23:33:48 +11:00
9f98bbce2d refactored hws to improve database operability 2026-01-11 23:11:49 +11:00
1b25e2f0a5 Refactor database interface to use *sql.DB directly
Simplified the database layer by removing custom interface wrappers
and using standard library *sql.DB and *sql.Tx types directly.

Changes:
- Removed DBConnection and DBTransaction interfaces from database.go
- Removed NewDBConnection() wrapper function
- Updated TokenGenerator to use *sql.DB instead of DBConnection
- Updated all validation and revocation methods to accept *sql.Tx
- Updated TableManager to work with *sql.DB directly
- Updated all tests to use db.Begin() instead of custom wrappers
- Fixed GeneratorConfig.DB field (was DBConn)
- Updated documentation in doc.go with correct API usage

Benefits:
- Simpler API with fewer abstractions
- Works directly with database/sql standard library
- Compatible with GORM (via gormDB.DB()) and Bun (share same *sql.DB)
- Easier to understand and maintain
- No unnecessary wrapper layers

Breaking changes:
- GeneratorConfig.DBConn renamed to GeneratorConfig.DB
- Removed NewDBConnection() function - pass *sql.DB directly
- ValidateAccess/ValidateRefresh now accept *sql.Tx instead of DBTransaction
- Token.Revoke/CheckNotRevoked now accept *sql.Tx instead of DBTransaction

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-11 17:39:30 +11:00
14eec74683 created hws module 2026-01-04 00:59:24 +11:00