121 Commits

Author SHA1 Message Date
Sketch
a943188958 Fix bug in cas where if Limit was PR, the LimitStruct would omit a node. 2022-10-17 07:24:36 -04:00
Spotlight
24976315d4
Ensure title ID is lowercase 2022-07-06 11:51:01 -05:00
Spotlight
63fbffeabc
Write somewhat cleaner readme 2022-07-06 11:50:51 -05:00
Spotlight
2ac3a9c6cc
Upgrade dependencies 2022-07-06 11:50:48 -05:00
Spotlight
cad9816315
Properly seed randomness
I am not really sure how that went unnoticed.
2022-01-09 21:05:58 -06:00
Spotlight
f27c980c44
Implement purchasing 2022-01-09 06:45:43 -06: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
d7af36a6c8
Utilize new schema for ListETickets 2022-01-08 16:38:39 -06:00
Spotlight
461b40d6bd
Update to separate tickets schema 2022-01-07 04:30:32 -06:00
Spotlight
3337ebb475
Properly check registration status 2022-01-01 23:00:50 -06:00
Sketch
943f475bba
Do some Wii no Ma specific cas stuff 2021-12-29 08:46:26 -06:00
Spotlight
c32a746085
Update dependencies
Additionally properly formats source, as this had not been done in a
previous push.
2021-12-13 11:32:16 -06:00
Spotlight
25b34eed84
Update dependencies 2021-09-28 16:12:50 -05:00
Spotlight
ca3eabab27
Attempt something
I honestly forget what I was doing, but it's pending and I'll change it later anyway
2021-09-28 16:11:33 -05:00
Spotlight
bd48515bf9
Properly handle ErrorMessage
Some ECDK versions print ErrorMessage to the common EC log.
2021-09-03 11:18:26 -05:00
Spotlight
5bcb474a78
Update dependencies 2021-08-27 10:46:27 -05: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
8291cff180
Add test ListItems response
Not currently functional, but parses succesfully.
2021-07-24 18:27:55 -05:00
Spotlight
50bf68ed8b
Update dependencies 2021-07-24 10:36:33 -05:00
Spotlight
e1325a2681
Prefer two spaces over a tab
Goes with BroadOn's presumed XML standards.
2021-05-23 16:43:27 -05:00
Spotlight
80601c7788
Add debug config option 2021-05-23 16:42:41 -05:00
Spotlight
6ceeb68dfc
Add preliminary support for purchase history querying 2021-05-06 17:59:59 -05:00
Spotlight
6221b6dac2
Draft a new major version
There are so many changes...
2021-05-03 18:56:21 -05:00
Spotlight
346859afe5
Use pgx for connections 2021-05-03 18:37:02 -05:00
Spotlight
0c1463c90c
Convert to PostgreSQL schema 2021-05-03 13:36:28 -05:00
Spotlight
765d85da98
Update dependencies 2021-05-03 02:07:10 -05:00
Spotlight
3182d4dd7e
Properly implement SyncRegistration
This additionally updates GetRegistrationInfo to use similar logic. The two are the exact same function within both the ECDK and the Wii Shop Channel's ESHOP SDK - they differ only in name, authentication level, and a single key.
2020-12-25 04:27:53 -06: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
7558aeed43
Implement GetECConfig 2020-12-23 05:05:18 -06:00
Spotlight
e0f676f1f5
Update dependencies 2020-12-21 14:42:55 -06:00
Spotlight
67df1d307c
Add proper account querying 2020-09-10 19:24:32 -05:00
Spotlight
6620df7d27
Syncronize schema 2020-09-05 10:43:05 -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
Spotlight
e9445110b0
Add preliminary ticket support
This needs authentication, which is the next task requiring a restructure.
2020-09-05 06:44:03 -05:00
Spotlight
5cbf9f81a8
Add proper registration response 2020-08-20 23:19:21 -05:00
Spotlight
de5c682dd5
Use more precise timestamp 2020-08-18 22:35:13 -05:00
Spotlight
a3355a7b69
Implement GetChallenge 2020-08-18 16:07:36 -05:00
Spotlight
7c7ac06509
Avoid redundant field struct usage 2020-08-18 14:38:28 -05:00
Spotlight
f32e2a5f2e
Convert sprintf-based XML handling to struct-based marshalling
This allows the opportunity to have various handler methods for inserting XML data, instead of a jungle between properly parsing and string-based prayer.
2020-08-18 05:35:53 -05:00
Spotlight
3427d96df4
Use original error message upon empty or invalid action specification 2020-08-17 01:20:36 -05:00
Spotlight
e588ba6e68
Refactor HTTP handling logic
This is an extraordinarily large commit, and in hindsight would have benefitied from being written separately.

To summarise:

-  Converts namespace URI parsing to a regex, instead of convoluted string logic
 - Removes per-request XML structures in favor of normalised XPath queries
 - Moves common variables for all requests to a k/v map of their name and contents, in order to reduce function parameter count
 - Changes the name of the ECS action "NotifiedETicketsSynced" to its hardcoded (tenseless) name, "NotifyETicketsSynced"
 - Improved properly reporting errors to the end user in areas
2020-08-16 23:06:09 -05:00
Spotlight
9088111c4e
Split responses into templates 2020-07-28 04:24:02 -05:00
Spotlight
ce7afd94ec
Split handlers into their individual files
Eventually, this will allow for us to cover further namespaces, such as CCS or NUS proper.
2020-07-28 03:47:14 -05:00
Spotlight
fcdfdad403
Update copyright 2020-07-28 00:40:55 -05:00
Spotlight
0e3490357d
Graft WiiSOAP to EC's expected request behaviour (#12)
* Update module repo path

* Use SOAPAction for request interpretation
2020-07-28 12:10:36 +10:00
CornierKhan1
f0c243bc9c
Update README.md 2020-05-12 14:49:25 +10:00
CornierKhan1
fbf26bb559
Testing smh 2020-04-15 20:34:10 +10:00
CornierKhan1
f9cd055951 Added TODO. Strings contains needed? 2019-12-20 13:16:10 +11:00