18 Commits

Author SHA1 Message Date
Daniel López Guimaraes
6ab58a2066 feat: update to use gRPC tokens 2026-07-16 22:37:19 +01:00
Daniel López Guimaraes
66c6e6028a feat: Implement token validation from common protocols
We have to do special handling for guest accounts, so the insecure
method is enabled on both TicketGranting and SecureConnection. Alongside
that, we override the RegisterEx function to do the additional
processing required by friends.
2025-04-17 20:44:56 +01:00
Jonathan Barrow
8432cfd6d5 feat: update to latest NEX libs 2025-02-15 23:31:32 -05:00
Jonathan Barrow
18e1a0fefa chore: migrate ConnectedUser map to MutexMap 2024-04-09 12:21:50 -04:00
Jonathan Barrow
4d299a3612 rewrite: Migrate to v2 libraries and small bug fixes 2024-04-08 08:53:39 -04:00
Daniel López Guimaraes
b5d34d8db4 Update RMC method creation 2023-12-16 16:09:47 +00:00
Jonathan Barrow
1596eeea45 updated StationURL handling 2023-11-24 17:41:31 -05:00
Jonathan Barrow
de11455a1b use new PID, DateTime and method returns 2023-11-14 22:47:52 -05:00
Jonathan Barrow
cb82df0e20 use new PID type 2023-11-13 01:22:34 -05:00
Jonathan Barrow
91b13c31a4 work with new nex-go 2023-11-12 06:48:13 -05: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
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
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
a817a7ccd0 Merge authentication and secure servers 2023-07-16 21:20:04 -07:00
Jonathan Barrow
2cce4a7af4 Updated to latest NEX libs 2023-04-08 10:44:51 -04:00