Login API

Any issue about Cyclos 4 scripting and Webservices

Moderators: hugo, alexandre, rmvanarkel

Post Reply
bconnect
Posts: 9
Joined: Tue May 20, 2014 12:24 pm

Login API

Post by bconnect » Mon May 29, 2017 11:24 am

Hello Cyclos Team and user community.
We have an issue regarding the Cyclos API authorization. We use this method "$loginService = new Cyclos\LoginService(); $loginService->loginUser($params);" and received session token but when we going to Cyclos environment with this session token we see authorization form.
We tried to make Cyclos environment security with HTTPS but we receive this error http://prntscr.com/fdegp5 . In the code files, we found the variable "rootUrl" which contain Cyclos environment domain with HTTP so to make it works properly we need to change this variable (rootUrl) to HTTPS.

So, here is a question:
1. Why doesn't session token work properly?
2. If it's a problem which related to the https? How can we configure Cyclos environment on HTTPS?

bconnect
Posts: 9
Joined: Tue May 20, 2014 12:24 pm

Re: Login API

Post by bconnect » Fri Jun 02, 2017 9:56 pm

Hi all, any assistance would be greatly appreciated!

martin.rueegg
Posts: 80
Joined: Thu Aug 11, 2016 12:38 pm
Location: Bristol, UK
Contact:

Re: Login API

Post by martin.rueegg » Thu Sep 07, 2017 6:07 am

Hi bconnect

If you could post the full code with instructions as to manual steps, this would help us to help you. :-)

However, I think it's unlikely it has anything to do with SSL. More likely that you did not provide the correct IP address (remote client) upon authorisation.

Martin.
Cyclos v4.8.2 w/ Social license
Technical Manager, Bristol Pound CIC, Bristol, UK, http://bristolpound.org

Post Reply