TuCloudAPI authpoll
Appearance
TuCloudAPI function to manage FuturePBX (the cloud PBX). Available to: SuperRoot, Operator, Client.
Description
Has the magic link been clicked? PUBLIC, like authrequest. While it has not, returns magiclogin's own status (pending/expired/consumed). On success it creates the session, sets the HttpOnly+Secure+SameSite=Strict cookie and returns the context the SPA hydrates from. The response carries NO token and NO ukey: the id is in the cookie, and the tenant key never leaves this service.
Call
https://tucloudapi.7kas.com:9087/tucloud?func=authpoll&ukey=YOUR_KEY
GET, or POST with the parameters form-urlencoded in the body. Requires the ukey parameter.
Parameters
| Parameter | Type | Required | Default | Meaning |
|---|---|---|---|---|
session_code |
string | Yes | — | The code returned by authrequest. |
Example
https://tucloudapi.7kas.com:9087/tucloud?func=authpoll&session_code=XXXX
Response
{ok, status} while pending; on success {ok, pbx, pbx_id, root, admin_ext_id, identity, is_admin, idle_timeout} plus Set-Cookie.
Back to TuCloudAPI