summaryrefslogtreecommitdiff
path: root/src/account-server/accounthandler.h
AgeCommit message (Collapse)AuthorFilesLines
2023-05-05Added support for logging in with StellarThorbjørn Lindeijer1-2/+8
* Added PAMSG_STELLAR_LOGIN / PAMSG_STELLAR_LOGIN_RESPONSE, which is used by the client to request a login token that can be signed using a Stellar wallet. * Added uWebSockets dependency, used to listen for a separate server that verifies signed tokens (the Stellar Bridge). When a token is verified, it is sent to manaserv-account, which then sends a APMSG_LOGIN_RESPONSE to the client matching the token. * Added RapidJSON dependency to parse the JSON WebSocket messages. * To keep everything in a single thread, uWebSockets is now driving the event loop. Processing of ENet hosts, writing stats and expired bans have been moved to uSocket timers. * C++ standard updated to C++17, as required by uWebSockets. When Stellar is used to login, the public key is used as the username. It might be better to introduce an explicit field for this, especially when we want to enable an account to feature both Stellar login as well as login with username / password.
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-0/+50
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.