You are not logged in.
Thank you. Ex -> flutter as front end.
Last edited by mongkey (2021-09-06 12:20:18)
Offline
Yes, see the doc about the ORM layer REST URIs.
But I won't use it for anything but debugging or local access, because it may be unsafe to publish the whole ORM tables to the clients.
It is always better to publish SOA dedicated services.
Online
Ok,
Offline
Just one last hint: don't forget to include an "User-Agent" header in your flutter front end requests, otherwise the server may consider the client is a mORMot client, and then the returned JSON may be in "extended" format with unquoted field names, so Flutter is likely to have troubles parsing it.
Online
As far as I understand, mORMot "extended" format is compartible with json5, and json5 parsers exists in JS and Dart...
Last edited by mpv (2021-09-07 18:58:29)
Offline
Actually i am nubie for this field, is it soa dedicated service = interface based client with security layer inside mormot? Or there is any article for soa dedicated service in mormot? I know mormot has fast speed with very small effort for pascal users.
If i use httpclient from flutter, is it posibble to set user auth just like from mormot unit? Or only secure it using jwt only.
Last edited by mongkey (2021-09-08 01:54:07)
Offline
Yes, I meant interface-based services.
For auth and a non-mORMot client, you may use a JWT.
But some user reported using Dart/Flutter https://synopse.info/forum/viewtopic.ph … 478#p35478
Never forget to secure the line over HTTPS.
Online
Ok, i'll try
Offline
All work for now on LAMW, flutter, need dig deeper on mormot security, thank you AB!
Offline