Skip to content

Instantly share code, notes, and snippets.

@dadim
dadim / frontdeskmethodservice.pas
Last active April 1, 2021 12:08
Front desk method (mORMot) based service with jwt authentication
(*
A method based service class to handle user authentication, using an abstract username/password check and jwt afterwards.
It can be used as a base class to descent a front desk method based service to implement the actual web api. It is based
on the mORMot Framework.
For more info, please visit:
https://synopse.info/forum/viewtopic.php?id=5826
Author: Damianos (dadim)
*)
@dadim
dadim / MyTestClientMain.pas
Last active June 24, 2020 09:30
Test sample for mORMot lazy DI
unit MyTestClientMain;
interface
uses
{$IFDEF MSWINDOWS} Windows, Messages, {$ENDIF}
SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls,
SynCommons, mORMot, mORMotHttpClient, MyTestInterface;