JWT auth: checking user rights in db

If you take the auth server as a starting point, wouldn't it be just using the Connection Pool and/or the Context Manager (http://www.tmssoftware.biz/business/xdata/doc/web/txdataoperationcontext.html) in the TLoginService.Login method implementation?


In the Login implementation, just get the Manager, perform operations in the database (for example, retrieve the TUser object), and build your token with proper data from the TUser object.