-
Notifications
You must be signed in to change notification settings - Fork 40
Chore/Upgrade packages #41
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
base: dev
Are you sure you want to change the base?
Conversation
4d6c80a to
353ae76
Compare
e35f6c8 to
a395e93
Compare
|
Rebased. |
a395e93 to
f35da1b
Compare
0d457a0 to
0e77fc8
Compare
Update dockerfile for correct node version. Update package for openid-client This essentially required reconstructing the oidc.go and auth.go files following the 6.x examples. While doing that, resolved some performance problems by only validating and parsing the session-stored JWT token once in the authenticated path and inserting the resulting sub (subject) into the request object for access in the next endpoint. This greatly simplifies the parts that expect an authenticated endpoint. Added indexes for database performance. Can't get the migration to generate!
0e77fc8 to
0a1f3af
Compare
|
@adamshiervani I can't seem to get the |
| const JWKS_URL = new URL("https://www.googleapis.com/oauth2/v3/certs") | ||
| const JWKS = jose.createRemoteJWKSet(JWKS_URL); | ||
| const verificationOptions = { | ||
| //algorithms: ['RS256'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example shows S256 but really should be RS256... until I can test I can't be sure which is right.
|
Latest dev contains Readme and DX improvements. It should be more straightforward now. |
Now runs on Node 22.22.0
This also required major updates to oidc.ts and auth.ts, so updated the way the JWT Token was being managed to only validate and extract ONCE per request.
Upgraded the Dockerfile to use
node:22.22.0-alpinebase imageAdded indexes to the database schema for better performance
** NEED TO GENERATE THE MIGRATION **