mirror of
https://github.com/appy-one/acebase-server.git
synced 2026-05-25 06:02:16 -06:00
[PR #109] [MERGED] Features: Add user roles and custom middleware #89
Labels
No labels
bug
enhancement
feature request
pull-request
types
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase-server#89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/appy-one/acebase-server/pull/109
Author: @appy-one
Created: 12/9/2024
Status: ✅ Merged
Merged: 12/16/2024
Merged by: @appy-one
Base:
master← Head:feature/user-roles-and-custom-middleware📝 Commits (5)
0ea6db3Add roles to users, treat users with role 'admin' as administrator64eb2f8AddpreMiddlewareandpostMiddlewarecallbacks to allow adding custom middleware for logging purposes, header processing etcbe88c1fchange line endings to LF196e8c9change line endings to LF6cb2cd3change line endings to LF📊 Changes
16 files changed (+71 additions, -24 deletions)
View changed files
📝
src/middleware/admin-only.ts(+2 -1)📝
src/middleware/user.ts(+2 -0)📝
src/routes/auth-delete.ts(+3 -2)📝
src/routes/auth-signup.ts(+4 -4)📝
src/routes/auth-update.ts(+4 -1)📝
src/routes/auth.ts(+0 -4)📝
src/routes/data-reflect.ts(+2 -1)📝
src/routes/data-set.ts(+2 -1)📝
src/routes/data-transaction.ts(+2 -1)📝
src/routes/data-update.ts(+2 -1)📝
src/routes/meta-info.ts(+2 -1)📝
src/rules.ts(+3 -2)📝
src/schema/user.ts(+5 -0)📝
src/server.ts(+15 -3)📝
src/settings/index.ts(+18 -2)➕
src/shared/admin.ts(+5 -0)📄 Description
This adds user roles to auth to enable role-based authorization rules, and callback methods to allow adding custom middleware upon server startup
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.