API cannot login with POST (v2020)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mgqz
User
Posts: 88

How to login by POST with API (v2020)

Post 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 ?


arbei
User
Posts: 9285

Post 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.


Post Reply