Commit Graph

187 Commits

Author SHA1 Message Date
Konstantin Wohlwend
c7d3bcf4fb expiresInSeconds now forced to be an integer 2024-12-01 00:38:00 -08:00
Konstantin Wohlwend
f7d4b67155 Default expiresIn to 0 2024-12-01 00:35:03 -08:00
Konstantin Wohlwend
5c39d9e8be Initialize OIDC provider lazily 2024-11-30 23:47:12 -08:00
Konstantin Wohlwend
d05ce2e3e2 Remove unnecessary log statement 2024-11-30 23:29:33 -08:00
Konsti Wohlwend
cec718f542
Identity Provider/External OAuth (#323)
Co-authored-by: moritz <moritsch@student.ethz.ch>
2024-11-30 23:27:55 -08:00
Zai Shi
45ef89d936 integration -> integration/neon
Some checks failed
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-11-27 12:46:20 +01:00
Zai Shi
8f73e99389
Endpoints for Neon integration (#351)
/integrations/api-keys
/integrations/oauth-providers
2024-11-27 12:30:20 +01:00
Konstantin Wohlwend
c1b8601341 Advanced team invitations 2024-11-26 17:12:57 +01:00
Konstantin Wohlwend
128a0897c9 More reliable emails 2024-11-23 23:52:40 +01:00
Konstantin Wohlwend
3d0d5dcd7f Suppress hydration warnings on html and body of backend 2024-11-23 03:31:23 +01:00
Konstantin Wohlwend
86d3eaf7f8 Don't allow creating new auth contact channels with emails that already exist 2024-11-23 03:30:04 +01:00
Konstantin Wohlwend
d0ee3c0504 Fix build 2024-11-22 23:31:02 +01:00
Konstantin Wohlwend
3158828155 Fix Sentry 2024-11-22 23:25:23 +01:00
Konstantin Wohlwend
24db0a675e Allow no DSN in Sentry 2024-11-22 23:19:58 +01:00
Konstantin Wohlwend
7a9a11fab7 Fix Sentry setup 2024-11-22 23:16:17 +01:00
Konstantin Wohlwend
072bd623a4 Make error handler debug page dynamic 2024-11-22 19:13:27 +01:00
Konstantin Wohlwend
32e32d502a Upgrade Sentry 2024-11-22 19:06:34 +01:00
Konstantin Wohlwend
01eddd99a1 Return error when adding auth contact channel in use by another account
Some checks failed
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-11-21 23:18:44 +01:00
Konstantin Wohlwend
ac9a85317c Stricter email input validation 2024-11-21 22:41:22 +01:00
Konstantin Wohlwend
26b09b0947 Fix build 2024-11-20 03:41:21 +01:00
Konstantin Wohlwend
1f84ff59aa Create users endpoint can now take a password hash 2024-11-20 03:26:22 +01:00
Konstantin Wohlwend
6a0ca7531c Disallow invalid emails 2024-11-20 00:12:20 +01:00
Konstantin Wohlwend
010656e586 Outer OAuth server now returns better error messages 2024-11-19 01:15:43 +01:00
Konstantin Wohlwend
bc24b41f61 Replace required() of yup schemas with defined() 2024-11-18 20:08:55 +01:00
Konsti Wohlwend
3b18f09ec7
Log geoip information with events (#344) 2024-11-17 18:07:36 +01:00
Konsti Wohlwend
c2bc80bda5
Support create-next-app@15 with the setup wizard (#340) 2024-11-13 13:58:42 +01:00
Zai Shi
18d6e77ca2
Fixed user email update bug (#329) 2024-11-05 22:21:27 +01:00
Zai Shi
35afb5785c
Contact channel docs (#327)
* added docs

* added contact channel sdk docs
2024-11-01 01:32:20 +01:00
Zai Shi
f6ffd50f3b fixed default user endpoint behavior, added useUsers pagination 2024-10-31 10:00:50 -07: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
Konstantin Wohlwend
7860785dfb Remove owner pack 2024-10-28 13:55:01 -07:00
Konstantin Wohlwend
5f741a0bef Improve error when sign-up email fails to send 2024-10-27 17:04:31 -07:00
Zai Shi
27351c5bb3 fixed redirect url not white listed error 2024-10-26 14:33:56 -07:00
Zai Shi
1b8b83861d contact channel id must be uuid 2024-10-26 11:24:30 -07:00
Zai Shi
363bfa9bed
OTP auth on the client SDK and dashboard (#309)
Fixed the bug that user creation doesn't check the otp/password configs correctly
UX improvement: added otp auth to user creation on the dashboard
Improved user creation docs
Added otp auth to user creation SDK
2024-10-22 00:03:56 +02: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
2f761c6467
SDK classes/hooks reference docs (#301)
Split up SDK reference and component reference
Added User and StackApp reference
Fixed stackServerApp.createUser function options
2024-10-20 23:56:43 +02:00
Zai Shi
e6b898126e
Contact channel client (#290)
Added contact channels to stack-app
Added emails, OTP, and password settings to the account settings page
Added /api/v1/auth/password/set
Added otp_auth_enabled to users endpoints
2024-10-20 01:01:25 +02: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)
Some checks failed
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
58402dee42 Improve version alert message
Some checks failed
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-11 18:02:58 -07:00
Konstantin Wohlwend
f10f03c3b3 Add otel spans for sent emails 2024-10-11 17:52:47 -07:00
Konstantin Wohlwend
36f627d411 Alerts when running outdated versions 2024-10-09 21:59:37 -07:00
Zai Shi
ce857fb0ac
fixed send team invitation api (#295)
* fixed send team invitation api

* added team invitation tests
2024-10-09 22:43:15 +02:00