1

Unclear about new Authorization way.

Topic: Unclear about new Authorization way.

Hi,
Currently, every month more or less, I generate a token with the login form  http://hosting.wialon.com/login.html.

Is there a way to make this an automatic process?
To be able to generate a token inside my code so I never have to login to the form mentioned above ?

Hope is clear enough.
Thanks !

2

Unclear about new Authorization way.

Re: Unclear about new Authorization way.

Hello
You can generate infinite token using duration parameter
http://hosting.wialon.com/login.html?duration=0

The only restriction - this token must be used at least once a month. If no login with it for 30 days - token will be deactivated

3

Unclear about new Authorization way.

Re: Unclear about new Authorization way.

hi,

I want to check the token is vaild or not, so I'm using the token/login remote API method, if it is returns error code '8'(Invalid user name or password), then I'm assuming that token is expired or deactivated.

Please confirm whether above logic is correct or not and also suggest me any other way to check token existence.

Thanks
J Prabhu
4

Unclear about new Authorization way.

Re: Unclear about new Authorization way.

prabhu.janakiraman
Your logic is correct

5

Unclear about new Authorization way.

Re: Unclear about new Authorization way.

Hi,

Is there any process available to get the token automatically without going to login form http://hosting.wialon.com/login.html.

Currently I am using token with limited duration. When it expires, I want to get new generated token inside my code.


Thanks.

6

Unclear about new Authorization way.

Re: Unclear about new Authorization way.

paresh.prajapati wrote:

Hi,

Is there any process available to get the token automatically without going to login form http://hosting.wialon.com/login.html.

Currently I am using token with limited duration. When it expires, I want to get new generated token inside my code.


Thanks.

Hi!

First token is only possible to get via login form, it allows to save data and provide security.
You can create token with unlimited duration, for this you need to pass parameter duration=0 in URL to login form

For example,  https://hosting.wialon.com/login.html?a … duration=0

Just note: with unlimited token you need to login no less than 1 time per 100 days.

More about using tokens you can read here https://weblog.gurtam.com/storage/old_e … hod_EN.pdf

Diana Cheley
Wialon Hosting Expert
Gurtam