Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Helper #3

Merged
merged 70 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
dacb520
feat: add refresh and access token to TokenResponse model
VeeIsForVanana Jul 8, 2024
8c4a4b0
fix: make refresh token optional instead of nullable
VeeIsForVanana Jul 8, 2024
dbb5332
feat(db): add tokens to users schema
VeeIsForVanana Jul 8, 2024
8cc8a8f
feat: reimplement user upsert
VeeIsForVanana Jul 8, 2024
8a66cd6
fix: add access_token to initUser
VeeIsForVanana Jul 8, 2024
735df8f
feat: use all new user db methods
VeeIsForVanana Jul 8, 2024
3e5f4a3
feat(db): add designated_sender table to schema
VeeIsForVanana Jul 8, 2024
aee732b
feat: install nodemailer
VeeIsForVanana Jul 8, 2024
66a3a69
feat(db): add singleton schema for emailer
VeeIsForVanana Jul 8, 2024
9c26ca2
fix: fix schema declarations
VeeIsForVanana Jul 8, 2024
9432b02
fix: fix designatedEmailer getter
VeeIsForVanana Jul 8, 2024
586a41d
feat: install types for nodemailer
VeeIsForVanana Jul 8, 2024
4ccba4c
feat: add base64 library
VeeIsForVanana Jul 8, 2024
fa4268a
feat: add email helper
VeeIsForVanana Jul 8, 2024
a60b924
fix: add gmail to requested oauth scope
VeeIsForVanana Jul 8, 2024
ee63c18
feat: ensure refresh token is always generated using explicit prompt
VeeIsForVanana Jul 8, 2024
3263d04
fix: correct typos in queries
VeeIsForVanana Jul 8, 2024
b96cb00
feat: reimplement email helper using nodemailer
VeeIsForVanana Jul 9, 2024
1b6e635
feat: redefine designated_sender schema
VeeIsForVanana Jul 9, 2024
aef4a68
feat: change designated_sender getter
VeeIsForVanana Jul 9, 2024
76f9f32
fix: add field for token expiry to designated_sender
VeeIsForVanana Jul 9, 2024
04e1b03
feat: implement CRUD operators for designated_sender
VeeIsForVanana Jul 9, 2024
78a9e9f
feat: modify login flow to account for new sender
VeeIsForVanana Jul 9, 2024
2cd0f12
fix: complete login modifications
VeeIsForVanana Jul 9, 2024
41d34b7
feat: allow null fields in designated_sender
VeeIsForVanana Jul 10, 2024
bd4531a
feat: rewrite db handlers for designated_sender
VeeIsForVanana Jul 10, 2024
9ee1280
feat: modify sessions to indicate whether new_sender is expected
VeeIsForVanana Jul 10, 2024
61f3ec6
feat: modify pending session generation
VeeIsForVanana Jul 10, 2024
4592fc7
feat: modify oauth/login route to use new generatePendingSession wrapper
VeeIsForVanana Jul 10, 2024
878640f
feat: modify models
VeeIsForVanana Jul 10, 2024
93fa231
feat: modify deletePendingSession wrapper
VeeIsForVanana Jul 10, 2024
5a312ad
feat: revise users query wrappers to remove tokens
VeeIsForVanana Jul 10, 2024
5e9a261
feat: update oauth/callback to handle new designated_user
VeeIsForVanana Jul 10, 2024
7946d8b
fix: use date instead of number for expires_at
VeeIsForVanana Jul 10, 2024
3311e71
feat: implement token refresh
VeeIsForVanana Jul 10, 2024
f740a96
fix: fix syntax error in init.sql
VeeIsForVanana Jul 10, 2024
4e263c7
fix: fix missing RETURNING value for generatePendingSession
VeeIsForVanana Jul 10, 2024
fb32b33
feat: decouple oauth scopes list from TokenResponse
VeeIsForVanana Jul 10, 2024
5cde301
fix: redefine designated_sender.expries_at as timestamptz
VeeIsForVanana Jul 10, 2024
8a3cc54
fix: correct designatedSender updater query
VeeIsForVanana Jul 10, 2024
5b14011
fix: correct date calculation
VeeIsForVanana Jul 10, 2024
9d2808e
fix: fix token refresh pathway
VeeIsForVanana Jul 11, 2024
b1073f3
chore: run formatter
VeeIsForVanana Jul 11, 2024
f62eea6
fix: change redirect destination in oauth/callback
VeeIsForVanana Jul 13, 2024
d9af542
chore: run formatter
VeeIsForVanana Jul 13, 2024
a7949c0
refactor(db): rename `is_new_sender` => `has_extended_scope`
BastiDood Jul 15, 2024
b63e1df
refactor(db): reinstate `EXCLUDED` keyword for upserts
BastiDood Jul 15, 2024
bfb6899
chore: remove unused variables
BastiDood Jul 15, 2024
34ea442
refactor(db): rename `expires_at` => `expiration`
BastiDood Jul 15, 2024
7540f0b
fix: remove unused dependency
VeeIsForVanana Jul 16, 2024
68a6140
feat: move email-related models to their own file
VeeIsForVanana Jul 16, 2024
f292681
fix: add missing await
VeeIsForVanana Jul 16, 2024
5b7047a
chore: merge new commits
VeeIsForVanana Jul 16, 2024
6aca201
fix: add mising await
VeeIsForVanana Jul 16, 2024
c728f9a
refactor: prefer cryptic parameter name
VeeIsForVanana Jul 16, 2024
671c680
fix: do not redirect an already logged-in user if they are to be a ne…
VeeIsForVanana Jul 16, 2024
1f36031
feat: extend allowed oauth scopes
VeeIsForVanana Jul 16, 2024
7e88a85
feat: use new oauth scope string in oauth/login
VeeIsForVanana Jul 16, 2024
caed2bb
feat: introduce check to ensure all permissions in id_token are valid
VeeIsForVanana Jul 16, 2024
e580338
fix: resolve diverged branches
VeeIsForVanana Jul 16, 2024
83a1d35
fix(db): remove non-null constraint on designated_sender
VeeIsForVanana Jul 17, 2024
5e8fc9f
fix: remove redundant EmailerCredentials model
VeeIsForVanana Jul 17, 2024
4a9fdb2
fix: restore credential expiration checking and refresh
VeeIsForVanana Jul 17, 2024
5686a53
chore: run formatter
VeeIsForVanana Jul 17, 2024
d66b4e6
refactor(db): distinguish between candidate senders from designated s…
BastiDood Jul 17, 2024
8e27241
refactor(oauth): only check for the existence of the `extended` searc…
BastiDood Jul 17, 2024
b0c42cc
refactor(oauth): assert more properties before reassigning the design…
BastiDood Jul 17, 2024
05d7740
refactor: remove one level of directory indirection
BastiDood Jul 17, 2024
efbef72
refactor(jwks): move JSON Web Key Set fetcher to own module
BastiDood Jul 17, 2024
535c9a2
refactor(email): simplify control flow for email sender
BastiDood Jul 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"itertools": "^2.3.2",
"jose": "^5.6.3",
"just-group-by": "^2.2.0",
"nodemailer": "^6.9.14",
VeeIsForVanana marked this conversation as resolved.
Show resolved Hide resolved
"pino": "^9.2.0",
"postgres": "^3.4.4",
"svelte": "^4.2.18",
Expand All @@ -40,6 +41,7 @@
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.13",
"@types/node": "^20.14.10",
"@types/nodemailer": "^6.4.15",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"autoprefixer": "^10.4.19",
Expand Down
Loading
Loading