Commit Graph

19 Commits

Author SHA1 Message Date
Stan Wohlwend
9ff2cff5c5
Organizations & RBAC (#22)
* added organizations route

* added orgganizations/[orgId] and orgganizations/[orgId]/users routes

* added more routes

* restructured dashboard pages, added organization page

* fixed redirect bug

* updated sidebar

* added mock orgnizations

* fixed breadcrumbs

* added edit org modal

* added memeber table

* added permission table

* Orgs & perms backend

* Fix build errors

* updated permission ui

* org -> team for frontend

* added enable team UI

* Stack App for teams

* formatted schema

* renamed all orgs to teams

* fixed docusaurus bug

* disabled docusaurus build progress bar

* added member profile and direct permission to profile

* removed dead code, memberProfile -> member

* removed teams attribute from the user object

* added /teams endpoint

* added create team endpoint

* added add-user endpoint

* moved add-user

* added server side get teams

* updated schema formatting

* added team enabled endpoints

* fixed type error

* moved get current teams to current-user/teams

* improved interface

* added create team

* hooked up team to frontend

* added hooked up team name with team member page

* added list team users

* added useUsers to team object

* fixed list team user bug

* added team update

* added list permissions and use permission on app

* added create permission

* list permission

* added permission list

* added inherited permission list

* add edit permission model

* restructured permission graph

* updated style

* added delete permission

* fixed delete permission bug

* added inheritence update

* fixed await bug

* fixed selection bug

* added permission update

* fixed update bug

* fixed team update refresh

* added remove user from team

* restructured permission and permission definition

* updated permission definition structure

* updated list permissions and grant permissions

* fixed list user permissions

* added grant permission

* fixed list permission

* added direct option to list team use permission

* fixed bugs

* fixed bugs

* added revoke permission

* inherited from -> contains

* added client list permission

* restructured stack-app teams and permissions

* fixed server teams and permissions

* fixed bug

* fixed bugs

* added teams pages to demo

* added styled component compiler

* added list teams

* added join and leave teams

* fixed prisma onDelete

* fixed type bugs

* removed on permission change for now

* added member

* fixed user and server user

* fixed imports

* added create team

* added more content to demo

* fixed recursion bug

* fixed recursion stack out of bound bug

* removed teamsEnabled

* added create team on sign-up options

* added create team on signup

* queriable -> queryable, fixed migration file

* fixed migration file

* fixed demo build error

* fixed license accidental change

* fixed tab styling

* added required to create permission id

* added more ui error hints

* fixed seed wrong setting

* default team name

* improved permission list ui

* improved demo display

* Update README.md

---------

Co-authored-by: Zai Shi <zaishi00@outlook.com>
2024-05-08 12:43:56 +02:00
Stan Wohlwend
dc6659131c
Auth for smartRouteHandler (#27) 2024-05-05 10:28:31 +02:00
Stan Wohlwend
406ad69ebb
Docker compose dependencies (#20) 2024-05-04 15:42:41 +02:00
Zai Shi
96c26a7918
Magic link (#13)
* added magic link email, updated email template

* added magic link ui and db schema

* restructured sign in sign up page

* updated example custom button

* added joy tabs

* fixed bugs, added magic link errors, abstracted token creation

* added magic link callback

* fixed token bugs

* added more auth information to user object

* added changeset
2024-04-20 12:33:11 +02:00
Zai Shi
a93b71fcb5 added migration file 2024-03-13 10:41:33 +08:00
Zai Shi
c0151a8e5d removed redirectUrl in functions, added newUser attribute to signInWithOAuth, added after sign-in/up/out urls 2024-03-12 17:31:28 +08:00
Stan Wohlwend
be831c8b64 Prisma migration 2024-03-06 16:27:11 +01:00
Zai Shi
e2091fd872 fixed provider config case bug 2024-03-06 23:12:56 +08:00
Zai Shi
397a4046ba Oauth -> OAuth 2024-03-06 21:17:14 +08:00
Zai Shi
278a18a1ed added enabled to oauth config 2024-03-06 09:02:05 +08:00
Zai Shi
0eced1936b updated provider frontend 2024-03-06 01:27:45 +08:00
Zai Shi
6091cab7e9 Merge branch 'main' of github.com:stackframe-projects/stack 2024-03-05 23:08:21 +08:00
Zai Shi
8ecba202cf made credential enabled work (both frontend and backend) 2024-03-05 23:08:16 +08:00
Stan Wohlwend
ff89714dcb Recreate initial migration 2024-03-05 15:52:07 +01:00
Zai Shi
cd152317de added project config update 2024-03-05 22:40:50 +08:00
Stan Wohlwend
6530d7e1bf Prisma migration 2024-03-04 21:21:14 +01:00
Zai Shi
7591a5c349 added profile image and display name to oauth info 2024-03-04 16:20:03 +08:00
Zai Shi
f6e974a571 added user count, fixed display bug, renamed db projectUserPasswordResetCode 2024-03-01 11:20:45 +01:00
Stan Wohlwend
ced0be74b3 Move code (initial commit) 2024-02-28 14:35:30 +01:00