Login with token

You can use the token obtained from the authentication web service to authenticate an user into a TOWeRS system.

In order to do so, you have to redirect the user to the following url:

https://<system url goes here>/login/sso.php?token=<token goes here>

example:
    https://demo.netstorming.net/login/sso.php?token=reg465htr835safjht5h843sd.68h5rth8jhdsg87re3gre3dfhg4ere684rehrth4rt6rth.trh4rt4hd35g4re68hhrth84

The page will handle the token and authenticate the user.

If you want to specify a navigation language, you can provide to sso.php a language param with the requested language.
Available languages depends on your system setup, but valid values are: (it, en, fr, pt-br, sl, ca, de, es, hr, ru, nl, zh, ar).

example: 
    https://demo.netstorming.net/login/sso.php?token=reg465htr835safjht5h843sd.68h5rth8jhdsg87re3gre3dfhg4ere684rehrth4rt6rth.trh4rt4hd35g4re68hhrth84&language=it

If you want the user to be redirected to a specific page after the login, you can pass the additional GET parameter redirect_to.

redirect_to needs to be populated with the path (with any parameters) of the target page, all URL-encoded.

As an example, if you want the user to be redirected to /booking/availabilityV2.php?city_code=VCEI after the login, the URL for SSO will be:

https://demo.netstorming.net/login/sso.php?redirect_to=%2Fbooking%2FavailabilityV2.php%3Fcity_code%3DVCEI&token=reg465htr835safjht5h843sd.68h5rth8jhdsg87re3gre3dfhg4ere684rehrth4rt6rth.trh4rt4hd35g4re68hhrth84