Jonathan Barrow
1654f0b458
Merge pull request #9 from PretendoNetwork/dev
...
Merge dev to master
2023-10-13 16:21:14 -04:00
Jonathan Barrow
cc9b839d45
Merge pull request #8 from DaniElectra/friends-mii
...
Update FriendPersistentInfo on 3DS
2023-10-08 19:14:12 -04:00
Daniel López Guimaraes
3f48ae8306
Update FriendPersistentInfo on 3DS
...
One of the DateTimes doesn't represent the date of the friendship, but
when the friend has updated their Mii.
I noticed this when playing with the friend servers researching
information about the data stored on the FRD sysmodule.
The friendship date is still stored internally, but it's not provided to
the user anymore.
2023-10-08 19:24:58 +01:00
Jonathan Barrow
73871a4537
remove database.PIDArrayToString in favor of pq.Array
2023-10-06 19:13:19 -04:00
Jonathan Barrow
b3feb8c7d6
Merge pull request #7 from DaniElectra/errors
...
Improve error handling and rename go project
2023-08-15 17:19:59 -04:00
Daniel López Guimaraes
502035dc74
Replace return empty lists with nil
2023-08-15 21:35:33 +01:00
Daniel López Guimaraes
77a1cc11aa
Add missing error handling (part 2)
2023-08-15 20:59:12 +01:00
Daniel López Guimaraes
06d89d8b77
Add missing error handling and update modules
2023-08-15 20:56:01 +01:00
Daniel López Guimaraes
84566dd6a8
Move GetUserDataByPID to utility
2023-08-14 13:17:48 +01:00
Daniel López Guimaraes
36b0b7f3fb
Add missing error handling on GRPC method
2023-08-13 23:30:12 +01:00
Daniel López Guimaraes
2d1e087fac
Replace stubs with NotImplemented
2023-08-13 23:28:44 +01:00
Daniel López Guimaraes
8d8a05a7e2
Add missing error handling
...
Now database getters do error handling aswell, and in case of any error,
the NEX or GRPC method throws a proper error about it.
There are still some doubts on how to handle errors when a list of data
is processed, so for now skip that element on the list and continue.
Also add some constant errors to do better error handling.
2023-08-13 23:19:34 +01:00
Daniel López Guimaraes
2f80336681
Rename friends-secure to friends and remove Mongo
...
Replace MongoDB usage with GRPC calls to the account server. Also
include documentation on the README and a Makefile.
2023-08-13 01:05:08 +01:00
Daniel López Guimaraes
3d5e78f532
Improve error handling
...
Now that we can return errors to nex-protocols-go and it will handle it,
we can improve how errors are being handled in friends.
There's probably room for improvement from this, since I haven't added
error handling on some database getters due to uncertainties on whether
the error should interrupt an action or not.
2023-08-12 23:53:21 +01:00
Jonathan Barrow
2c1cdba561
Merge pull request #6 from PretendoNetwork/new-style
...
Merge authentication server to make a singular codebase
2023-07-19 16:42:20 -04:00
SuperMarioDaBom
5a62bb2aa2
Fix typo (v1->v0)
2023-07-18 11:41:18 -07:00
SuperMarioDaBom
4108f4baad
Convert to modern result code handling
2023-07-18 11:41:01 -07:00
SuperMarioDaBom
1779a4c727
Add RegisterEx override, remove unneeded Register function
2023-07-18 11:40:36 -07:00
SuperMarioDaBom
c5a6b31d68
Remove unnecessary function call, fix typo
2023-07-18 11:34:54 -07:00
SuperMarioDaBom
2583592ab3
Enable insecure login
2023-07-18 11:33:18 -07:00
SuperMarioDaBom
4274963c20
Use sprintf for string concatenation
2023-07-17 18:37:58 -07:00
SuperMarioDaBom
7d80142f0f
Switch to new organization convention
2023-07-17 18:37:41 -07:00
SuperMarioDaBom
84db1463eb
Switch to newer function
2023-07-17 18:36:19 -07:00
SuperMarioDaBom
69cddb088d
Add error info to log
2023-07-17 18:36:01 -07:00
SuperMarioDaBom
db972eacc6
Adjust import names for consistency
2023-07-17 18:35:33 -07:00
SuperMarioDaBom
3d45d4b32e
Update init.go
...
Fix Kerberos password thing that I just noticed part 2
2023-07-17 12:32:48 -07:00
SuperMarioDaBom
4b7cbb3668
Update secure.go
...
Add version numbers
Fix Kerberos password thing that I just noticed
2023-07-17 12:16:20 -07:00
SuperMarioDaBom
ca71cb56f6
Update authentication.go
...
Set NEX version
2023-07-17 12:11:50 -07:00
Jonathan Barrow
6eedca01d5
Merge pull request #5 from PretendoNetwork/docker
2023-07-17 06:00:46 -04:00
SuperMarioDaBom
179a8221ba
Add missing gRPC initialization
2023-07-16 23:41:05 -07:00
SuperMarioDaBom
91816691de
Prevent execution from stopping when no .env file is present
2023-07-16 22:11:42 -07:00
SuperMarioDaBom
56f4381eb9
Dockerize
2023-07-16 21:25:43 -07:00
SuperMarioDaBom
a817a7ccd0
Merge authentication and secure servers
2023-07-16 21:20:04 -07:00
SuperMarioDaBom
1b43935ea6
Update to latest version of libraries
2023-07-16 21:19:30 -07:00
Jonathan Barrow
348f43de1c
Merge pull request #4 from PretendoNetwork/dev
...
Merge dev into master
2023-07-16 23:02:34 -04:00
Jonathan Barrow
9cd0783a99
Merge pull request #3 from DaniElectra/grpc-friends-3ds
2023-06-30 00:10:28 -04:00
Daniel López Guimaraes
441e5c168f
Add 3DS friends to GetUserFriendPIDs gRPC method
...
Only add complete friendships to the friend list.
2023-06-28 18:35:50 +01:00
Jonathan Barrow
4587a217f9
Added missing nil checks to ConnectedUsers and add missing users
2023-06-12 21:01:57 -04:00
Jonathan Barrow
614c7d580d
nil check on connected users map when updating presence
2023-06-12 16:51:38 -04:00
Jonathan Barrow
4a98796b05
Added token padding bounds check and error response
2023-06-12 16:26:03 -04:00
Jonathan Barrow
520c3a4f3a
Updated library versions
2023-06-12 15:17:21 -04:00
Jonathan Barrow
2b66b5c21a
Compiles on latest library versions
2023-06-10 20:14:19 -04:00
Jonathan Barrow
6b9e9cf42b
Update token format
2023-06-10 20:12:59 -04:00
Jonathan Barrow
5880ba8f4a
Updated to new token format
2023-05-01 15:17:12 -04:00
Jonathan Barrow
a1e82c92d3
Updated env var names
2023-05-01 15:16:39 -04:00
Jonathan Barrow
5d39218a86
Added DenyFriendRequest gRPC method
2023-04-18 11:49:18 -04:00
Jonathan Barrow
e5306b2961
Filter expired WiiU friend requests from the returned list
2023-04-18 11:40:30 -04:00
Jonathan Barrow
1a5edb7d3d
Added AcceptFriendRequest gRPC method
2023-04-11 22:55:43 -04:00
Jonathan Barrow
5cfa094633
Added GetUserFriendRequestsIncoming gRPC method
2023-04-11 22:50:18 -04:00
Jonathan Barrow
d9ab22204b
Added SendUserFriendRequest gRPC method
2023-04-11 22:36:46 -04:00