#1 Re: mORMot 1 » Authenticate to API using mORMot » 2020-04-25 15:31:27

So, if I understand it correctly, mORMot have everything needed to achieve the same as the code in the link, except for a JWT class for RS256 algorithm? Can I get my hopes up for such a class being made in the mORMot framework, or should I go for the workaround suggested by mpv? Off course doing all in Delphi code is preferred.

#2 Re: mORMot 1 » Authenticate to API using mORMot » 2020-04-25 11:33:35

What about the x509 certificate and the JWT security token needed to authenticate?

#3 mORMot 1 » Authenticate to API using mORMot » 2020-04-25 08:45:22

oerjann
Replies: 7

Hello.
Could someone familiar with mORMot please have a look at the code in the link below, and tell me if the same thing can be accomplished using Delphi and mORMot? If so, any tips on where to start would be highly appreciated. Thanks!

https://developer.unieconomy.no/wiki/in … pplication

#4 Re: mORMot 1 » Can't compile sample projects » 2016-02-04 18:32:29

I don't now if you want to keep all the sample projects to compile with the default OBJFPC compiler mode. But if you do, I can inform you that example 26 do not compile with this mode because
parameters in class methods cannot have the same names as class properties in this mode. See http://www.freepascal.org/docs-html/pro … gse62.html

#5 Re: mORMot 1 » How to start a Linux server in the background ? » 2016-02-03 15:22:23

It looks like the daemon code posted by AOG need to be updated in order to compile. I can not find a class called TSOHITServer in the mORMot source code.

#6 Re: mORMot 1 » Can't compile sample projects » 2016-01-27 14:17:30

Doh! I figured out my problem, totally my fault. We have been using synpdf for a couple of years. For that reason I have both a mORMot directory and a synpdf directory in my library path, both directories containing SynCommons.pas. The syndpdf directory contains an outdated version of SynCommons.pas and is listed before the mORMot directory.

PS. I can see from your about box that you have not installed Update 1 for Delphi 10 Seattle.

#7 mORMot 1 » Can't compile sample projects » 2016-01-26 15:53:20

oerjann
Replies: 4

Hi!

I want to try out the mORMot Framework, and just downloaded mORMotNightlyBuild.zip. I was thinking that running the sample programs would be a good place to begin. The problem is that I can't compile them. Delphi 10 Seattle can not compile Synlog.pas. I'm trying to compile the project in SQLite3/Samples/MainDemo:

[dcc32 Error] SynLog.pas(1665): E2250 There is no overloaded version of 'AddDynArrayJSON' that can be called with these arguments

procedure TSynMapFile.SaveToJson(W: TTextWriter);
begin
  W.AddShort('{"Symbols":');
  W.AddDynArrayJSON(fSymbols);
  W.AddShort(',"Units":');
  W.AddDynArrayJSON(fUnits);
  W.Add('}');
end;

Board footer

Powered by FluxBB