By ehsanv - Fri Apr 17, 2020 6:28 pm
- Fri Apr 17, 2020 6:28 pm
#827888
Hi,
I'm using Anonymous Authentication for Web Entry and build my own login page and system. But after all is passed good, I use wsdl2 to login user.
My first thought was that the problem is because I'm using wsdl2 for logging in users,
But after i used a separate php file to login, everything works fine.
So i think the problem is with Web Entry login and something to do with guest user that first create the Web Entry,
Every time i want to call a REST API i get this:
Thanks in advance
Ehsan
SOLVED:
I added
before add new location in HTTP header and using new sid retrieved from wsdl2 login method.
Hope this help someone else
I'm using Anonymous Authentication for Web Entry and build my own login page and system. But after all is passed good, I use wsdl2 to login user.
My first thought was that the problem is because I'm using wsdl2 for logging in users,
But after i used a separate php file to login, everything works fine.
So i think the problem is with Web Entry login and something to do with guest user that first create the Web Entry,
Every time i want to call a REST API i get this:
Code: Select all
I can run processes assigned for the current logged in user, BUT I can't call any REST API methods.{"error":{"code":400,"message":"Bad Request: This case is assigned to another user"}}
Thanks in advance
Ehsan
SOLVED:
I added
Code: Select all
$_SESSION = []; // clear session
before add new location in HTTP header and using new sid retrieved from wsdl2 login method.
Hope this help someone else