Konsti Wohlwend
3b18f09ec7
Log geoip information with events ( #344 )
2024-11-17 18:07:36 +01:00
Zai Shi
fd8d166e04
Query/filtering with list users endpoint ( #314 )
2024-10-30 02:16:39 +01:00
Moritz Schneider
93a1fcf7cb
Passkey support ( #321 )
...
* passkeys
* add passkey tests
---------
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2024-10-28 16:56:46 -07:00
Zai Shi
3ba900fc30
Revert "added filtering params"
...
This reverts commit 93c89a0392 .
2024-10-21 13:20:48 -07:00
Zai Shi
93c89a0392
added filtering params
2024-10-21 13:10:15 -07:00
Zai Shi
73641dd0d0
removed test code
2024-10-16 19:36:48 -07:00
Zai Shi
2ad9247ab0
Added waitUtil for analytics/webhooks so it is non-blocking ( #303 )
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2024-10-17 04:15:21 +02:00
Zai Shi
18d75fbf21
Contact channel APIs ( #288 )
...
* removed contact channels from otp
* fixed types
* fixed bugs
* fixed bug
* fixed bugs
* updated user contact channel
* updated tests
* updated tests
* added unique key to otp and password auth
* added contact channel api
* added new send-verification-code route
* updated tests
* added contact channel create tests, fixed bug
* added more tests, removed update
* added more tests
* added more tests
* added more tests
* fixed typecheck
* fixed route structure
* fixed bugs, fixed tests
* added more tests
* added more tests
* fixed tests
* fixed tests
* implemented new merge account logic
* moved user create of otp sign in to after the first email verification
* added cc updates
* fixed bugs
* added more tests
* added more flows
* uncomment tests
* added primary updates
* Update apps/e2e/tests/backend/endpoints/api/v1/contact-channels/legacy-send-verification-code.test.ts
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
* Update apps/e2e/tests/backend/endpoints/api/v1/auth/otp/sign-in.test.ts
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
* updated test names
* Update apps/e2e/tests/backend/endpoints/api/v1/auth-flows.test.ts
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
* Update apps/e2e/tests/backend/endpoints/api/v1/auth-flows.test.ts
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
* Update apps/backend/src/app/api/v1/auth/oauth/callback/[provider_id]/route.tsx
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
* fixed lint
* fixed lint
* fix lint
---------
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2024-10-14 02:12:56 +02:00
Konstantin Wohlwend
9da481b2cd
Require newline at the end of each file
2024-10-13 13:06:38 -07:00
Konstantin Wohlwend
e762832938
ensureTeamExist -> ensureTeamExists
2024-10-13 13:03:22 -07:00
Konstantin Wohlwend
f7e56a8f34
Replace typo in function name (ensureUserExist -> ensureUserExists)
2024-10-13 13:01:24 -07:00
Konstantin Wohlwend
f10f03c3b3
Add otel spans for sent emails
2024-10-11 17:52:47 -07:00
Zai Shi
a785d47417
Project specific JWKs ( #293 )
...
* added per project signing
* added well-known/jwks.json
* fixed bugs
* fixed bugs
* fixed tests
* fixed not found error
2024-10-07 21:27:55 +02:00
Zai Shi
06fcca6fe6
OTP ( #263 )
...
* fixed otp send email template
* added version
* added send response type
* updated email template
* added otp email
* added otp page
* fixed bugs
* fixed bugs, added back button on otp page
* otp works
* added max attempts per nonce code
* fixed error return type
* fixed tests
* fixed bugs
* updated button text
* added tests
* added totp code error handling
* removed console.log
* fixed verification code length
* fixed code length
* moved otp inside magic link sign in component
* changed version back, updated ui wording
* added old version otp email tests
* fixed tests
2024-09-24 20:02:06 +02:00
Zai Shi
36a4edd93a
Added client side account deletion, team ids in user delete webhooks, and updated account setting UI design ( #257 )
...
* added user delete team relation webhook
* added delete account setting
* added translations
* updated translation
* added account delete button and functions
* added center to sidebar layout
* added new section layout
* updated sections
* updated styles
* updated setting styles
* improved account settings
* fixed account delete
* added tests
* fixed tests
2024-09-18 06:27:36 +02:00
Zai Shi
29ae8a7e3e
fixed otp/password config update logic
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2024-09-09 19:11:06 -07:00
Zai Shi
fb3250d646
fixed permission listing
2024-09-09 17:27:46 -07:00
Zai Shi
bb7074a29e
Team membership webhook ( #234 )
...
* fixed webhook docs type
* fixed docs
* added team memberships webhook
* changed docs sidebar width
* updated tests
2024-09-08 23:52:10 +02:00
Zai Shi
57a33b2dd6
Query optimization ( #230 )
...
* removed v1 api
* added new database schema
* fixed small problems
* fixed import errors
* fixed small problems in schema
* fixed missing metadata
* fixed totp db
* updated user
* added check auth data, updated cc primary
* added user update
* added comments
* updated project create
* fixed bugs
* updated seed script
* updated verification code handler
* updated sign in
* updated imports
* updated projects
* updated sign in route
* remove credential and magic link fields from ProjectConfig model
* fixed type bugs
* updated otp sign-in
* fixed seed script
* fixed password update
* updated credential and magic link enable
* fixed projects credential and magic link
* fixed oauth provider update
* added otp and password config update
* fixed db fkey
* fixed circular dependency
* fixed seeding
* fixed auth method fkey constraint
* password type => identifierType
* fixed seed
* fixed bugs
* fixed circular import
* deterministic auth methods order
* fixed bug
* fixed credential enabled default
* fixed bugs
* fixed credential enabled update bug
* updated tests
* fixed small bugs
* fixed connected account bugs
* updated test
* fixed password update bug
* fixed bug
* fixed tests
* fixed redirect bugs
* added migration file
* Update migration SQL
* Fix stuff
* improved get user speed
* fixed crud, improved smart-request
* improved smart request further
* improved smart request
* added prisma preview features
* fixed smart request
* fixed prisma
* added otel
* fixed bugs
* fixed small problem
* added jaeger and delay
* fixed small things
* updated parse auth structure
---------
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2024-09-08 01:28:20 +02:00
Zai Shi
fe1fdc4c11
Connected account & auth methods DB migration ( #204 )
...
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2024-09-07 13:03:31 -07:00
Konstantin Wohlwend
128cfc9cc1
JWKS file
2024-09-06 16:25:26 -07:00
Zai Shi
f60508031e
Added Microsoft Tenant ID in OAuth option ( #224 )
...
* added ms tenant id
* fixed types
2024-09-05 23:10:31 +02:00
Zai Shi
6591dbcd89
capture more info for email sending error
2024-08-28 13:07:18 -07:00
Zai Shi
ec5c4c8afb
fixed permission edit bug
2024-08-28 11:01:46 -07:00
Konstantin Wohlwend
610c1cf410
More PostHog groups
2024-08-20 19:15:50 -07:00
Konstantin Wohlwend
a7c2f2b3a0
Group events by project ID
2024-08-15 11:50:48 -07:00
Konstantin Wohlwend
b99efd675b
Fix event capture
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-14 12:49:35 -07:00
Konstantin Wohlwend
700034ca01
Fix project deletion ISE
2024-08-12 16:56:16 -07: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
3ae3720105
Better event logs
2024-08-11 15:25:45 -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
Konsti Wohlwend
94a3edd77d
Svix concurrency workaround ( #167 )
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-03 21:05:24 -07:00
Zai Shi
3f3bc4b6bb
fixed STACK_SVIX_SERVER_URL
2024-08-02 15:39:30 -07: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
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
c5518de773
Add LegacyApiEventType
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
e70921fc26
added webhook type
2024-07-25 16:08:12 -07:00
Zai Shi
7c4d27b7cb
fixed redirect url check
2024-07-25 11:58:14 -07:00
Zai Shi
f40b481f03
removed webhook endpoint creation
2024-07-25 11:43:46 -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
Zai Shi
d391e332e6
added enabled oauth providers
2024-07-20 12:58:42 -07:00
Zai Shi
54027d58a2
New client ( #135 )
...
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2024-07-19 22:07:44 -07:00