10 Commits

Author SHA1 Message Date
Sketch
932a600c33 Fix hashed token size 2022-11-10 09:58:17 -05:00
Spotlight
ca35a37589
Migrate getKey to be apart of Envelope
We do not need to specify e.doc repeatedly.
2022-01-09 05:29:55 -06:00
Spotlight
97ce2212c6
Permit using unhashed tokens for routes
While only a few routes implement this - such as SyncRegistration - we do not mind heavily if another client developed by a third party utilizes routes with only hashed/unhashed tokens.
2022-01-09 03:33:08 -06:00
Spotlight
dad74c7f82
Allow no authentication
Only when debugging is enabled. Allows skipping of authentication for usage with CAS and so forth.
2021-07-24 18:27:56 -05:00
Spotlight
80601c7788
Add debug config option 2021-05-23 16:42:41 -05:00
Spotlight
346859afe5
Use pgx for connections 2021-05-03 18:37:02 -05:00
Spotlight
8009f1a510
Reduce security
Nintendo makes the unfortunate decision of sending the plaintext token to the client in a few requests.

Instead of storing a SHA-256 hash of the MD5 we expect from the Wii, we now store both the computed MD5 and plaintext generated token during registration.

The author of this commit apologizes.
2020-12-25 01:45:38 -06:00
Spotlight
67df1d307c
Add proper account querying 2020-09-10 19:24:32 -05:00
Spotlight
8e17fe4585
Add proper authentication 2020-09-05 10:34:24 -05:00
Spotlight
37fb20d8df
Restructure requests to route-based format
Instead of individual handlers, each request deals with one Envelope. This allows fine-tuned error control, along with what's effectively middleware for authentication.
2020-09-05 08:58:01 -05:00