CANT USE API BECAUSE I NEED TO AUTHENTICATE WITH ONE POST REQUEST, AND THIS SHOULD SAVE MY SESSION , SO I CAN GET MY DATA AFTER WITHOUT ANY PARAMETERS. IN POSTMAN IS WORKING LIKE THAT.
in bubble
I can POST the login and i get the correct answer.
but when making GET for geting data, i get a server error. (i think is authentication problem) and i dont have any token. im working with this api: https://frappe.github.io/frappe/user/guides/integration/rest_api.html
THIS ERROR IS IF I PUT THE URL ON CHROME
Traceback (innermost last):
File “/home/frappe/press/benches/1604131255/apps/frappe/frappe/app.py”, line 60, in application
response = frappe.api.handle()
File “/home/frappe/press/benches/1604131255/apps/frappe/frappe/api.py”, line 50, in handle
return frappe.handler.handle()
File “/home/frappe/press/benches/1604131255/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/frappe/press/benches/1604131255/apps/frappe/frappe/handler.py”, line 34, in execute_cmd
is_whitelisted(method)
File “/home/frappe/press/benches/1604131255/apps/frappe/frappe/handler.py”, line 47, in is_whitelisted
raise frappe.PermissionError(‘Not Allowed, {0}’.format(method))
PermissionError: Not Allowed,
Has this been resolved? The issue is that the first POST call response tells the client to store a session cookie with the client; this session cookie then needs to be passed to the server on each subsequent API call to validate the user is authenticated. This is a very common scenario for username/password authentication and is implemented in all browsers and REST clients. Is there a way to get the API Connector to store session cookies and use them in subsequent service API calls as specified by the http spec?
Any update on this? I’m trying to store session cookie because it is being returned to my API vis a a POST (I need a way to match the incoming POST with the user that triggered it)