Commit graph

30 commits

Author SHA1 Message Date
Laurin
14c73e5751
feat: remove supertokens-core and supertokens-node (#7705) 2026-03-12 10:19:16 +01:00
Laurin
33bff41342
feat: oidc domain registration and verification (#7745) 2026-03-09 13:08:27 +01:00
Laurin
5f88ce8bd8
feat: supertokens at home (#7699) 2026-02-23 11:19:12 +01:00
Iha Shin (신의하)
cf63917f0c
feat: block OIDC sign ups without invitation (#7600) 2026-02-11 14:50:37 +01:00
Laurin
1f38d9064c
Reapply "feat: introduce account linking for new users (#7390)" (#7638) (#7639)
Co-authored-by: Iha Shin <me@xiniha.dev>
2026-02-06 08:53:07 +01:00
Laurin
1bb6656dee
Revert "feat: introduce account linking for new users (#7390)" (#7638) 2026-02-05 17:14:55 +01:00
Iha Shin (신의하)
a9c490ebb6
feat: introduce account linking for new users (#7390)
Co-authored-by: Laurin <laurinquast@googlemail.com>
2026-02-05 16:54:13 +01:00
Dimitri POSTOLOV
e0eb3bdb28
feat: preflight scripts for laboratory (#5564)
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com>
Co-authored-by: Laurin Quast <laurinquast@googlemail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>
2024-12-27 10:06:52 +00:00
Laurin Quast
46c306c53e
chore: upgrade supertokens-node to 16.x.x (#5888) 2024-11-11 12:02:24 +01:00
Kamil Kisiela
ba0e07e117
Custom Auth UI, proper SSO login flow and slug modifications (#5111) 2024-07-03 16:31:01 +02:00
Dotan Simha
0a27436166
Use native fetch in CDN workers, refactor deprecated TS types, fixed integration tests fetch (#4112) 2024-02-29 11:31:44 +02:00
Kamil Kisiela
7a1e1506f0
Revert Node 21 upgrade and use Node 18 again (#3546) 2023-12-11 17:04:44 +02:00
Kamil Kisiela
5aaed27afb
Use whatwg-node/fetch for tRPC calls (#3554) 2023-12-11 12:33:22 +02:00
Kamil Kisiela
9c3e7b3b16
Node 21 (#3035) 2023-12-07 11:29:29 +01:00
Laurin Quast
778f97f44d
chore: upgrade supertokens core to 7 (#3386) 2023-11-15 10:39:54 +01:00
Laurin Quast
a90f25b953
use supertoken cdi version 3.0 (#2631) 2023-07-20 10:44:27 +02:00
Laurin Quast
67abf74c90
update supertokens cdi version to 2.21 (#2605) 2023-07-19 11:24:08 +02:00
Laurin Quast
9e935d2e06
pin supertokens cdi version (#2604) 2023-07-14 10:17:33 +00:00
Denis Badurina
8287a51255
prettier should be responsible for import sorting instead of eslint (#1027) 2023-01-23 10:30:38 +01:00
Dimitri POSTOLOV
7ad5e26c34
[🔧 ESLint] import sort (#736) 2022-12-28 20:22:54 +01:00
Dotan Simha
34b80e9492
Drop dockest, refactor integration testkit, and run all integration tests in parallel (#883)
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-12-28 10:37:23 +01:00
Kamil Kisiela
86161052bd
Transfer ownership of an organization (#732) 2022-12-07 11:36:52 +01:00
Kamil Kisiela
49380ff695
tRPC v10 (#706) 2022-11-29 18:47:13 +01:00
renovate[bot]
1afe0ec73a
Update dependency @theguild/prettier-config to v1 (#676)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-11-24 10:00:41 +00:00
Laurin Quast
991c82693b
feat: OIDC organisation integration (#524)
* feat: support login via okta

* add deployment config

* feat: automatically start okta login when visiting /auth with okta provider query parameter

* remove trailing slash from base url

* laurin pls

* ...

* adjust deployment url

* we dont need this

* docs: document how to enabled Google and GitHub social login (#511)

* docs: document how to enabled Google and GitHub social login

* Apply suggestions from code review

* Apply suggestions from code review

* docs: add Okta instructions

* fix typo

* add database migration

* feat: env decoding

* auto generate id

* add generates types for the postgres table

* implement crud graphql fields for the oidc integration entites

* add unique constraint for the oidc domain column

* use correct sql query for updating an oidc integration

* return organization from deleteOIDCIntegration ok result

* add crud forms to the settings page

* update integration test fixture value

* drop unique constraint for oidc_integrations.domain as this would allow a malicous user to block another account from using a domain

* move notice to isolated component

* apply url normalization in a central place

* implement supertokens provider and overrides for dynamic oidc provider integrations

* relocate code to correct files

* prettify oidc crud forms

* replace Query.isOIDCIntegrationFeatureEnabled with the Organization.viewerCanManageOIDCIntegration field

* do not show oidc integrations for personal organizations + disable crud endpoints if the feature is disabled

* load oidc integration for the supertokens flow via trpc from the server

* prepare encryption secret within constructor

* add user to organization upon oidc login

* login via oidc does not create a personal organization

* redirect oidc user to oidc organization

* disallow oidc users to create an organization

* disallow oidc accounts joining another organization

* add test for updating an oidc integration

* enhance ui

* add documentation for OIDC SSO

* add more tests

* import Callout component

* update snapshots

* rename field User.isLinkedToOIDCIntegration to User.canSwitchOrganization to be more decriptive

* add traling new line

* gracefully handle unique constraint

* upgrade supertokens-auth-react and adjust the code in order to remove the global preApiHook

* sync image versions with tests

* remove obsolete comment

* rename database column

* bruv

* add test for oidc user deletion
2022-11-03 16:45:17 +01:00
Kamil Kisiela
e85d8220a7
Ensure user and personal org creation after successful sign up/in (#518) 2022-10-25 16:12:43 +02:00
Saihajpreet Singh
642daaf494
Use Envelop v3 and GraphQL Yoga v3 (#443)
Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-10-06 13:48:01 +02:00
Laurin Quast
6540155fc7
feat: replace auth0 with supertokens (#303)
* add supertoken container to docker-compose file

* yeah I am sorry this one big commit and I am ashamed of it

* use logOut function

* feat: show header on 404 page

* feat: better handling for organization cookie when not authenticated

* wrap it

* check session within server side props

* add is_admin flag user migration

* simplify and annotate the config

* fix: handle status codes + fix email/password sign up with import from auth0

* no hardcoded env pls

* decode process.env

* secure update user id mapping via a key

* fix: login form

* lol we don't need to hit the API

* fix: do graphql api authorization via authorization header instead of cookie

* implement isAdmin flag

* fix: types :)

* skipit

* yo we can run this

* set env variables

* disable because it annoys the hell out of me

* use the right host

* add not about token length

* refactor: decode environment variables

* feat: store external user id from guthub/google provider in the database

* workaround supertokens omitting null values from the token

* re-enable check

* i have no time for this shit

* add missing env variable

* fix: email test; missing domain extension

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>

* fix: env names

* fix: link google account to the correct db record

* feat: email confirmation emails

* ?

* bump ts-node

* fix types

* omit package form the bundle

* remove it from dependencies...

* add emails apckage to dev deps

* resolve eslint issues

* remove comments

* update dev info + change env variable (no need to expose it on the frontend)

* use correct user id lol

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>
2022-09-06 09:38:31 +02:00
Kamil Kisiela
d02f9efdf0
Initial Emails service (#261)
* Initial Emails service

* Fix yarn.lock

* Metrics

* Fixes
2022-08-12 14:51:09 +02:00
Kamil Kisiela
dc3bc1ec87 Hello 2022-05-18 09:26:57 +02:00