Konstantin Wohlwend
c0ddab5e73
Revoke refresh tokens
2024-08-22 19:28:53 -07:00
Konstantin Wohlwend
448c45fca4
Project owner packs
2024-08-21 12:55:26 -07:00
Zai Shi
7b5d0ed793
Team metadata & client read only metadata ( #196 )
...
* added team metadata
* added client readonly metadata
* updated tests
* added team client meta data tests
* added user metadata tests
* added client read only metadata to stack-app
* added client read only metadata
2024-08-20 20:39:13 +02:00
Zai Shi
b2f92625da
updated health check db ( #195 )
...
Runs E2E API Tests / build (20.x) (push) Waiting to run
Runs E2E API Tests / build (22.x) (push) Waiting to run
Lint & build / lint_and_build (20.x) (push) Waiting to run
Lint & build / lint_and_build (22.x) (push) Waiting to run
TOC Generator / TOC Generator (push) Waiting to run
* updated health check db
* improved code style
2024-08-18 01:43:57 +02:00
Zai Shi
64c9a1cef1
Fix domain duplication error message ( #194 )
...
* check if domain already exists
* added duplicated domain error
2024-08-17 23:16:37 +02:00
Zai Shi
fa8463db15
fixed create team on sign up ( #188 )
2024-08-15 20:59:13 +02:00
Zai Shi
203778f5a3
added managedProjectIds delete and tests ( #182 )
Runs E2E API Tests / build (20.x) (push) Waiting to run
Runs E2E API Tests / build (22.x) (push) Waiting to run
Lint & build / lint_and_build (20.x) (push) Waiting to run
Lint & build / lint_and_build (22.x) (push) Waiting to run
TOC Generator / TOC Generator (push) Waiting to run
2024-08-13 07:28:09 +02:00
Jasveer Singh
ed44d7588b
feat:Add delete project functionality in Project,Project-settings Issue Is:-No option to delete a project #111 ( #127 )
...
Runs E2E API Tests / build (20.x) (push) Waiting to run
Runs E2E API Tests / build (22.x) (push) Waiting to run
Lint & build / lint_and_build (20.x) (push) Waiting to run
Lint & build / lint_and_build (22.x) (push) Waiting to run
TOC Generator / TOC Generator (push) Waiting to run
* Add delete project functionality in Project,Project-settings
* removed changes to the old dashboard
* added onDelete and backend endpoints
---------
Co-authored-by: Zai Shi <zaishi00@outlook.com>
2024-08-12 03:46:25 +02:00
Zai Shi
e5965cf977
Team frontend components ( #178 )
...
* Team invitation (#171 )
* team invitation wip
* implemented handler
* team invitation callback wip
* added team invitation frontend
* fixed listCurrentUserTeamPermissions
* added team invitation email template
* fixed bugs
* fixed verification code handler
* added more checks to team invitation verification
* fixed team invitation page
* restructured verification code handler
* fixed frontend
* fixed team invitation tests
* added more team invitation test
* fixed bug
* added migration file
* removed unused code
* Allow Next.js version `latest` in package.json
* Fix typo
* Update error message
* Remove unnecessary console.warn
* Updated "edit this page" button
* Hide unsupported properties from docs
* OAuth token tests
* Fix typo
* added create user button
* added create user button (#173 )
* added basic team settings
* Create SECURITY.md
* added editable text
* added more team settings
* Export button in tables
* Export all pages of tables
* Update security policy
* Fix docs typo
* More docs typos
* Improved user creation handlers
* added list users on client
* updated team-settings
* hide team setting component for now
* Fix: Improve error handling for Server API (#170 )
* Added entity checks to provide better errors in API for 'server' access type
* Removed 'ensureUserTeamPermissionExist', changed permissionId type to string in 'ensureUserHasTeamPermission'
* added different error types for user team permission
---------
Co-authored-by: Fahad Khan <fahad.khan@net-mon.net>
Co-authored-by: Zai Shi <zaishi00@outlook.com>
* added ensureClientUserAuthenticated
* improved error handling
* removed unused imports
* fixed bug
* added member list
* Sign up restriction button on dashboard
Fix #66 , #74
* moved data table to stack-ui
* added remove user modal
* fixed chokidar
* updated ui
* fixed merge
* fixed merge
* fixed merge
* updated settings component
* improved mobile styles
* added user invitation ui
* added team creation page
* added team creation to team component
* added setting icon to team switcher
* added settings sections
* added client_team_creation_enabled
* added frontend team creation enabled checks
* updated demo page
* added member profile update
* fixed profile editing
* added leave team button
* added create/delete team redirect
* fixed column header, updated team setting
* fixed account setting padding
* updated tests
---------
Co-authored-by: Stan Wohlwend <n2d4xc@gmail.com>
Co-authored-by: Fahad Khan <62707456+kfahad5607@users.noreply.github.com>
Co-authored-by: Fahad Khan <fahad.khan@net-mon.net>
2024-08-12 02:11:42 +02:00
Konstantin Wohlwend
c182cebec6
MFA for non-password apps
2024-08-11 13:30:05 -07:00
Konstantin Wohlwend
1b550e7e48
TOTP 2FA endpoints
2024-08-10 09:45:48 -07:00
Konstantin Wohlwend
c64fbf4fcd
Sign up restriction button on dashboard
...
Fix #66 , #74
2024-08-10 09:45:48 -07:00
Fahad Khan
4792aa53f8
Fix: Improve error handling for Server API ( #170 )
...
* Added entity checks to provide better errors in API for 'server' access type
* Removed 'ensureUserTeamPermissionExist', changed permissionId type to string in 'ensureUserHasTeamPermission'
* added different error types for user team permission
---------
Co-authored-by: Fahad Khan <fahad.khan@net-mon.net>
Co-authored-by: Zai Shi <zaishi00@outlook.com>
2024-08-10 09:45:48 -07:00
Konstantin Wohlwend
5b9ee575f8
Improved user creation handlers
2024-08-10 09:45:48 -07:00
Zai Shi
4bbead0ef9
Team invitation ( #171 )
...
* team invitation wip
* implemented handler
* team invitation callback wip
* added team invitation frontend
* fixed listCurrentUserTeamPermissions
* added team invitation email template
* fixed bugs
* fixed verification code handler
* added more checks to team invitation verification
* fixed team invitation page
* restructured verification code handler
* fixed frontend
* fixed team invitation tests
* added more team invitation test
* fixed bug
* added migration file
* removed unused code
2024-08-10 09:45:47 -07:00
Konsti Wohlwend
dfb51b8346
Auth methods and connected accounts ( #164 )
2024-08-04 11:39:26 -07:00
Stan Wohlwend
a86788d924
OAuth callback tests
2024-08-03 18:28:32 -07:00
Zai Shi
3f3bc4b6bb
fixed STACK_SVIX_SERVER_URL
2024-08-02 15:39:30 -07:00
Zai Shi
7574a2eb1b
fixed password reset ( #162 )
2024-08-02 04:00:24 +02:00
Zai Shi
f7c10f7047
UI restructured ( #161 )
...
* removed dashboard ui folder
* fixed imports
* removed stack email ui
* fixed types
* removed unused
* removed unused deps
* fixed dependencies
* removed unused files
2024-08-02 01:03:01 +02:00
Zai Shi
fb31827dc3
Webhooks ( #157 )
...
Runs E2E API Tests / build (20.x) (push) Waiting to run
Lint & build / lint_and_build (18.x) (push) Waiting to run
Lint & build / lint_and_build (20.x) (push) Waiting to run
* added svix to docker compose
* connect webhook sending with local svix
* added svix token endpoint
* added svix dashbaord
* added endpoint table
* updated danger items
* added more info on the webhook page
* added create endpoints dialog
* added edit and delete endpoint
* added log history
* added webhook secret
* updated sidebar layout
* fixed flashes
* updated webhook sending function
* removed unused imports
* updated endpoint code structure
* commented event types
* added webhooks docs
* added webhooks doc gen
* updated webhooks docs
* added webhook events
* updated teams docs
* fixed bugs
* fixed docker
2024-08-01 02:44:35 +02:00
Zai Shi
5ec3727d62
added oauth token table ( #160 )
2024-07-30 19:49:36 +02:00
Zai Shi
52e37a18ba
Server-side connected account ( #159 )
...
Runs E2E API Tests / build (20.x) (push) Waiting to run
Lint & build / lint_and_build (18.x) (push) Waiting to run
Lint & build / lint_and_build (20.x) (push) Waiting to run
* added new connected account endpoint
* added server useTeams
* fixed bugs
* updated example
* fixed teams fetch bugs
* hide deprecated route
2024-07-30 06:45:15 +02:00
Stan Wohlwend
ec7e1c94ee
Fix "forgot password" error
2024-07-28 06:27:41 -07:00
Stan Wohlwend
3bebd3f4d1
Better RetryErrors
2024-07-27 13:24:42 -07:00
Zai Shi
3bfff5215f
Facebook business config id ( #155 )
...
* Support moduleResolution: "node"
* Remove deprecated TeamSwitcher, use SelectedTeamSwitcher instead
* Rename CredentialSignInForm -> CredentialSignIn in code
* Improve KnownError messages
* Fix connected accounts (#148 )
* fixed endpoint
* fixed account linking
* fixed get access token
* fixed import bug
* Client team API (#149 )
* added transactions
* added client team update and delete
* added client side remove member
* allow user remove them selves from team
* fixed bug, fixed tests
* added client update test, fixed bugs
* added tests for team delete
* added more tests, fixed bugs
* fixed server example docs
* fixed broken doc link
* Impersonation
* do not create endpoint automatically
* removed unused property
* Team user profile API (#150 )
* added team member endpoints
* fixed circular dependency bug, added team member profiles tests
* added more tests
* added migration file
* Improved error messages
* Redirect user to correct page after sign-in (#151 )
* Metadata fields should be set to null when left empty (#145 )
* fixed send verification email
* added comments in prisma file
* improved types (#152 )
* added better messages for domains
* Added sentry headers to the allow list
* Optional shared keys (#153 )
* removed standard providers and shared providers
* added more types
* updated all providers imports
* fixed circular dependency
* updated dashboard for different shared keys
* fixed old dashboard
* added migration file
* added better oauth error message
* added facebookConfigId
* fixed types
* fixed for facebook config to be string bu
---------
Co-authored-by: Stan Wohlwend <n2d4xc@gmail.com>
2024-07-27 01:34:50 +02:00
Stan Wohlwend
79455fbfa1
Fix typo
2024-07-26 16:07:00 -07:00
Stan Wohlwend
cb87a5389f
Fix typo
2024-07-26 16:07:00 -07:00
Zai Shi
8243386459
added better oauth error message
2024-07-26 16:07:00 -07:00
Zai Shi
8d65f9b47b
Optional shared keys ( #153 )
...
* removed standard providers and shared providers
* added more types
* updated all providers imports
* fixed circular dependency
* updated dashboard for different shared keys
* fixed old dashboard
* added migration file
2024-07-26 16:07:00 -07:00
Zai Shi
15b96049ae
Team user profile API ( #150 )
...
* added team member endpoints
* fixed circular dependency bug, added team member profiles tests
* added more tests
* added migration file
2024-07-26 16:06:59 -07:00
Stan Wohlwend
8cd0b1609f
Impersonation
2024-07-26 16:06:59 -07:00
Zai Shi
6beed942e9
Client team API ( #149 )
...
* added transactions
* added client team update and delete
* added client side remove member
* allow user remove them selves from team
* fixed bug, fixed tests
* added client update test, fixed bugs
* added tests for team delete
* added more tests, fixed bugs
2024-07-26 16:06:58 -07:00
Zai Shi
547a29219e
Fix connected accounts ( #148 )
...
* fixed endpoint
* fixed account linking
* fixed get access token
* fixed import bug
2024-07-26 16:06:58 -07:00
Zai Shi
4ec03d0515
Improved documentation, fixed bugs ( #147 )
...
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2024-07-24 11:38:26 -07:00
Zai Shi
ad2fd3e5a2
added webhooks for team create and delete ( #140 )
...
* added webhooks for team create and delete
* moved to svix
2024-07-22 19:59:01 +02:00
Zai Shi
0147213003
Better errors for crud handlers ( #143 )
...
* added more errors to team creation
* check teams in client get
* added db checks
2024-07-22 03:45:30 +02:00
Konsti Wohlwend
7cca092c82
Events ( #142 )
2024-07-21 18:31:42 -07:00
Stan Wohlwend
af1563653a
Better params schema validation
2024-07-21 09:53:05 -07:00
Konsti Wohlwend
84960ec9ca
Mock OAuth server ( #138 )
2024-07-20 17:29:04 -07:00
Zai Shi
fd6f6c6d93
Fixed dashboard auth types and oauth account creation ( #139 )
...
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2024-07-20 16:51:54 -07:00
Zai Shi
af5b21125d
fixed type errors
2024-07-20 13:06:44 -07:00
Zai Shi
d391e332e6
added enabled oauth providers
2024-07-20 12:58:42 -07:00
Stan Wohlwend
fcac8fa876
Better error message when OAuth fails
2024-07-20 12:42:12 -07:00
Stan Wohlwend
e83815f665
Fix OAuth requirements bug
2024-07-20 12:40:32 -07:00
Zai Shi
54027d58a2
New client ( #135 )
...
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2024-07-19 22:07:44 -07:00
Zai Shi
2b26e3cb44
Improve API docs ( #133 )
...
* added projects and admin docs
* added docs to team permissions
* renamed url params to snake case
* added team permission definitions to docs
* added more docs
* added more docs
* added more docs to the api
2024-07-15 18:04:52 +02:00
Zai Shi
039cce7a58
Fix backend endpoints ( #132 )
...
* More backend endpoint implementations
Co-authored-by: Zai Shi <fomalhautb@users.noreply.github.com>
* Stuff
Co-authored-by: Zai Shi <fomalhautb@users.noreply.github.com>
* fixed env docs and crud imports
* Fix type error
* fixed crud handler dependency issue with proxies
* fixed wrong test
* fixed is_paginated, added list project tests
* Error when request queries or body properties are unused
* Fix semicolon
* added create project tests
* Fix some type errors
* Fix lint config
* fixed project no auth bug
* Fix lint errors
* Make no-restricted-syntax an error
* fixed project create no owner bug
* fixed project domain config update
* added more tests
* Sign up tests
* fixed email config update, added more tests
* added more tests, strip uuid in tests
* added oauth config update, added more tests
* E-mail verification tests
* Strip fewer fields
* added updateProject function for testing
* fixed project creation error, added more tests
* Begin OAuth authorize tests
* added get current project info
* added test for project
* removed description from current-project
* added basic teams endpoint
* improved openapi docs, added object types
* improved docs, fixed docs bug
* added email template endpoint
* crudHandlers.xyzList
* imp
* Default values for Prisma handlers
* CRUD queries
* Fix PEitherWrite
* Queries
* added api keys endpoints
* Authorize tests
* Password sign-in endpoint
* Sessions endpoints
* added more tests for api keys
* Update password endpoint
* Hide x-stack-request-id header
* fixed api key endpoints, added more tests
* updated test messages
* Password reset
* implemented team crud
* check-feature-support endpoint
* added teams tests, updated project endpoint folder structure
* added more tests for team
* added team membership handler
* Fix errors
* Type fixes
* Update comment
* strings comment
* Fix users page
* added more tests to team membership
* Rename team-memberships test file
* removed test code
* added user filter
* added permission grant
* added team permission definitions
* added permission definition tests
* added more tests
* fixed permission definition
* Improve types
* More type fixes
* Fix more type errors
* Fix lint errors
* Fix build error
* updated permission code structure
* fixed types
* added recursive permission
* Always log E2E test GH Actions logs
* Internal server error messages are shown in test environments
* Print Docker Compose logs
* fix
* fix more
* Improve
* fixes
* fixes
* fix stuff
* Wait on more stuff
* more fixes gh actions
* Fix pnpm start:xyz
* pin v
* node env test
* log order
* test envvars
* test
* added default permissions
* Credential sign up form now loads correctly
* added default permission to create team and add user
* Safari passwords match sign up
* Add migration file
* Don't error on authorize if blah
* fix tests
* restructured project with createCrudHandler
* Account settings password repeat
* Update README
* fixed user permission listing
* added sorting for permission definitions
* fixed project default permission update
* restructured project urls
* fixed import error
* removed format changes
* removed format changes
* removed format changes
* removed unused route
---------
Co-authored-by: Stan Wohlwend <n2d4xc@gmail.com>
Co-authored-by: Zai Shi <fomalhautb@users.noreply.github.com>
2024-07-15 01:55:01 +02:00
Stan Wohlwend
580bd73348
Fix trailing space lint errors
2024-07-14 10:37:34 -07:00
Konsti Wohlwend
b0f233a44c
More backend endpoint implementations ( #126 )
...
Co-authored-by: Zai Shi <fomalhautb@users.noreply.github.com>
2024-07-13 22:04:53 -07:00