setAuthParams

TrueConf7/5/26About 3 min

setAuthParams

Description

Select a new type of protection for controlling TrueConf VideoSDK either as a user or administrator

If the Unprotected authorization type is selected for the administrator, the same authorization type will be selected for the user

In order to set the secure mode for the user, it is necessary to set the secure mode for the administrator first

void setAuthParams(string sUserType, string sAuthType, string sSecret)

Parameters

NameDescription
sUserTypeType of account to be protected. It can be admin or user (upon availability)
sAuthTypeAuthorization type. It can be as follows:
• password - With a password
• pin - by PIN. A new PIN will be received in the response
• unsecured - Unsecurd
sSecretPassword. This field must be available when setting up password protection

Response example

{
    "result" : true,
    "newPin" : "ABC123",
    "method" : "setAuthParams",
    "requestId" : "1"
}

Response Parameters

NameDescription
token The token for the current connection to be used in the API. If the connection is lost and a reconnection occurs, it can be used for token-based authorization. It is present if the security type for the user under which the current connection is being made has been changed. The lifespan of the token depends on the type of authentication used:
• sAuthType == "unsecured" (unsecured authorization) - 30 days or until the moment when the application is closed
• sAuthType == "password" (with a password) - 30 days or until the moment when the application is closed
• sAuthType == "pin" (by PIN) - For 24 hours or until the application is closed
• with a Token - Determined by the initial authorization during which the token was received
tokenForHttpServerThe current connection token. It will be used on the HTTP server. The token lifetime equals 5 minutes or until the moment when the application is closed
newPinNew PIN. This field is present if PIN protection was set: sAuthType == "pin"
requestIdA unique request identifier
resultA flag indicating whether the request was successful

See also

Last Updated: