Page 1 of 1

How to login by POST with API (v2020)

Posted: Thu Jan 26, 2023 12:18 pm
by mgqz

Hello, I am trying to deploy an app that will also be used from another front end app, and will use the api.

I am able to query and get a JWT token if login with GET but not with POST

With POST request returns Status OK 200 but this :
{"success":false,"version":"16.0.16","JWT":null,"userlevelid":-2}

With GET I get the token and success,

I will like to login by POST as I don't know if GET method is more insecure ?


Re: API cannot login with POST (v2020)

Posted: Thu Jan 26, 2023 6:59 pm
by arbei

HTTP POST is better as the user name and password will not be seen in URL.

You may post your source code (to login by HTTP POST) for discussion.