Commit Graph

522 Commits

Author SHA1 Message Date
William Oldham
dc5b885e0f chore: add better logging to login and register routes
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
2025-04-08 00:28:56 +01:00
William Oldham
008a517947
Merge pull request #111 from PretendoNetwork/auth-updates
Update some authentication related checks
2025-04-07 23:50:14 +01:00
Jonathan Barrow
d59c6ef226
Merge branch 'dev' into auth-updates
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
2025-04-07 15:36:11 -04:00
Jonathan Barrow
97d5d88008
fix(grpc): add explicit token type check for refresh tokens 2025-04-07 14:39:51 -04:00
Jonathan Barrow
6087dc68ce
fix(nnas): correct error message for missing country header 2025-04-07 14:37:15 -04:00
Jonathan Barrow
9c92cfda3b
chore(nnas): remove outdated TODO in PNID middleware
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
2025-02-03 16:56:59 -05:00
Jonathan Barrow
37971c006d
refactor(nnas): check headers and device status in all possible endpoints
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
2025-02-03 13:22:30 -05:00
William Oldham
bc7defc80f
Merge pull request #152 from PretendoNetwork/token-fix
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
Fix for Invalid Service Token error - Refresh Token Duration same as Access Token
2025-02-02 10:26:43 +00:00
William Oldham
0578bfd501 chore: move back to number types for token, with const enum 2025-02-02 10:21:31 +00:00
William Oldham
bc406ec1b5
Merge pull request #99 from ItzSwirlz/dev
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
Implement email confirmation for parental controls (send_confirmation/pin/:email)
2025-02-01 20:10:24 +00:00
William Oldham
1197f713dc fix: ensure check returns
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
2025-02-01 20:00:49 +00:00
William Oldham
25c9b8b843
Merge pull request #155 from mrjvs/jvs-with-script
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
Account deletion/purging script
2025-02-01 19:55:08 +00:00
William Oldham
fdc122b486 chore: resolve review comments
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
2025-02-01 11:26:39 +00:00
William Oldham
8f2e6fc088 fix: use enum values for token property comparison
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
2025-01-31 23:33:37 +00:00
William Oldham
c7a230b860 style: add return type to fix eslint 2025-01-31 23:30:24 +00:00
William Oldham
577b5020b0 style: fix eslint issues in login 2025-01-31 23:05:45 +00:00
William Oldham
169e686944 feat: use "enum" for token system type 2025-01-31 23:05:11 +00:00
William Oldham
cad2d0e68e chore: use different oauth refresh expiry for NNAS and API 2025-01-31 23:05:11 +00:00
William Oldham
2a00924264 feat: use "enum" for token type 2025-01-31 23:05:11 +00:00
William Oldham
e3c78476ab style: fix linting issues 2025-01-31 23:05:11 +00:00
William Oldham
79bc90852b chore: don't use await when not needed 2025-01-31 23:05:11 +00:00
William Oldham
1ecb7ad473 fix: make refresh token expire longer than access token, and centralise oauth generation 2025-01-31 23:05:11 +00:00
Jonathan Barrow
d28ccbdf95
chore: check if PID and device is valid in NNAS email routes
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
2025-01-31 15:55:55 -05:00
Jonathan Barrow
2385caae55
chore: add missing device ID to 3DS consoles 2025-01-31 15:55:55 -05:00
Jonathan Barrow
43f240f864
chore: add early return to NNAS confirmation email resend if already verified 2025-01-31 15:55:54 -05:00
Jonathan Barrow
d5dcdcb7de
chore: add early return to NNAS email verification if already verified 2025-01-31 15:55:54 -05:00
Jonathan Barrow
5ab424d67d
chore: add warning against sharing request data to NNAS OAuth 2025-01-31 15:55:54 -05:00
Jonathan Barrow
4da4ef0a65
chore: timezone json spaces to tabs 2025-01-31 15:53:20 -05:00
Jonathan Barrow
4db3be92a0
fix: unescape timezone json 2025-01-31 15:53:19 -05:00
Jonathan Barrow
e6b9448d32
fix: remove unique constraint from 6 digit email code 2025-01-31 15:53:18 -05:00
Jonathan Barrow
302956d5f2
refactor: add explicit token handling functions 2025-01-31 15:53:18 -05:00
Jonathan Barrow
3e410ede7d
fix: validate padding in certificates 2025-01-31 15:53:17 -05:00
Jonathan Barrow
7f3b755b3a
fix: make NNAS middleware only allow Basic tokens on "devices" endpoints 2025-01-31 15:53:17 -05:00
Jonathan Barrow
8e557fc072
fix: make NNAS middleware only accept console tokens 2025-01-31 15:53:14 -05:00
William Oldham
1653b09988
Merge pull request #158 from AToska21/return-server
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
Return the server a tier below if it does not exist
2025-01-31 16:19:39 +00:00
Andrea Toska
8604d19993 fix(servers): missed a few semicolons, oops 2025-01-31 17:05:05 +01:00
Andrea Toska
c769cf3d23 fix(servers): use find query to lessen db load 2025-01-31 17:03:03 +01:00
Andrea Toska
ed780efb1e feat(servers): use the server a tier below if it does not exist
If a server does not exist in a tier, use the tier below it.
For example, if a user is in the test access level, but a server for that game only exists on prod, use that server.
Same for the dev access level, but it goes dev --> test --> prod
2025-01-31 09:39:08 +01:00
William Oldham
6802d39bed
Merge pull request #153 from AToska21/forum-contact
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
Add forum as a support option to the account confirmation emails.
2025-01-30 12:38:25 +00:00
Andrea Toska
d81f3d39c4 feat(email): add forum as a support option 2025-01-30 13:30:16 +01:00
William Oldham
cafea2ffa9
Merge pull request #128 from PretendoNetwork/api-return-user-stripe-tier
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
Return the PNID's Stripe tier name and level from the PNID details API
2025-01-29 19:50:12 +00:00
William Oldham
d170450e4b
Merge pull request #143 from PretendoNetwork/bucket-config
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
Mii uploads: use config for bucket name
2025-01-18 18:08:20 +00:00
Billy
6e724c2e60 nit: don't use an escaped string when a variable is fine. 2025-01-18 17:59:50 +00:00
Billy
6d821d6af5 Mii uploads: use config for bucket name 2025-01-18 17:52:58 +00:00
William Oldham
04d206e3ed
Merge pull request #135 from AToska21/dev
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
Fix up setup instructions
2025-01-13 11:44:16 +00:00
Andrea Toska
18bd158968 fix(setup): rename SES environment var
missed this, it needed to be SECRET_KEY, not ACCESS_SECRET.
2025-01-13 12:37:21 +01:00
Andrea Toska
d2ebb9f2ca feat(setup): fix up setup instructions
they were pretty outdated, still referencing using SMTP, but the server migrated to amazon SES.
2025-01-13 11:41:46 +01:00
Jonathan Barrow
1e595e6518
Merge pull request #131 from AToska21/dev
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
2025-01-12 17:38:17 -05:00
Natsuki ツ
55dacc467b feat(error): add the correct ban error codes 2025-01-12 21:30:26 +01:00
mrjvs
ef34e1e2fe Add pnid scrubbing script 2024-12-18 14:37:15 +01:00