Commit Graph

3 Commits (95c1f616bece48a7942b4db81f94d72eb1fe1f16)

Author SHA1 Message Date
veypi 95c1f616be chore: bump version to v1.2.0 and update all docs
- Bump version from v1.1.1 to v1.2.0
- Add CHANGELOG.md summarizing 20 commits since v1.1.1
- Rewrite docs to match current code: Session auth, Require* APIs,
  nested config (db.dsn/db.type/jwt.*), Cookie-based token delivery
- Update method names uniformly: Perm* -> Require*
- Fix README license badge (Apache -> MIT), port and build commands
- Update auth design docs to reflect Provider + Auth SPI pattern
- Update CLAUDE.md with current architecture and directory structure

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4 days ago
veypi b00e36ca80 refactor(auth): Add permission validation and update design docs
- Add validatePermission function to check depth/level consistency
    - Validate permission codes in Perm, Grant, and Check methods
    - LevelCreate requires odd depth, other levels require even depth
    - Update design.md examples from org to app/role model
    - Add RoleID field to Permission struct documentation
3 months ago
veypi a7ffd15601 refactor: Remove multi-tenant org system and simplify auth
- Delete org API endpoints (add_member, create, del, get, list, member, patch, tree)
    - Delete models/org.go and remove Org/OrgMember models
    - Delete org-related test files (org_crud, org_load_middleware, org_permission, multi_tenant)
    - Delete org test scripts (03_org_permission.sh, 04_org_load_middleware.sh)
    - Simplify auth/auth.go by removing org context and role loading logic
    - Remove org claims from JWT tokens and login/register responses
    - Redesign Permission model with hierarchical level-based access control
    - Add auth/design.md with new permission system specification
    - Update user and role APIs to work without org context
4 months ago