rest_ws POST endpoint security tracking

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

rest_ws POST endpoint security tracking

Postby LXS » Mon Mar 25, 2024 11:57 am

Hi,

i'm using the rest_ws plugin to call a POST endpoint which creates a new record in a table.
On this table i enabled "Tracking (Insert/Update/Delete)" for a user group also called "Tracking".
I also added my webservice user to the "Tracking" group.

But it seems that rest_ws calls are stateless and so there is no user login and no tracking which documents record changings.

Is there a way when using the rest_ws plugin to record the changes via security tracking?

Thanks!
Alex
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 151
Joined: Thu Mar 01, 2007 12:00 am

Re: rest_ws POST endpoint security tracking

Postby Ruben79 » Tue Mar 26, 2024 11:16 am

Hi Alex,

Do you call security.login() in your ws_create method with your webservice user? I think that should make it work.
Ruben de Jong
Stb Software Development
SAN Partner

Stb Software Development - http://www.stb.nl
User avatar
Ruben79
 
Posts: 97
Joined: Wed Apr 18, 2007 12:43 pm

Re: rest_ws POST endpoint security tracking

Postby LXS » Tue Mar 26, 2024 11:50 am

Hi Ruben,

thank you very much! It was indeed so simple! I thought there would be an auto-login with the basic auth.

Alex
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 151
Joined: Thu Mar 01, 2007 12:00 am


Return to Programming with Servoy

Who is online

Users browsing this forum: Bing [Bot] and 19 guests

cron