Poco::OSP::Auth::Data

struct AuthParams

Library: OSP/Auth/Data
Package: Auth
Header: Poco/OSP/Auth/Data/AuthAdminServiceImpl.h

Variables

cacheSize

int cacheSize;

Size of the permissions cache.

cacheTimeout

int cacheTimeout;

The timeout for the credentials cache, in seconds.

credentialsSalt

std::string credentialsSalt;

Salt for version 3 initial MD5 credentials hash (username:salt:password).

dbConnectionString

std::string dbConnectionString;

The connection string for connecting to the auth database.

dbConnector

std::string dbConnector;

The name of the database connector for the auth database.

hashVersion

int hashVersion;

The version of the password has to use:

  • 1: MD5 with common salt (original, no longer considered secure)
  • 2: PBKDF2 with HMAC-SHA1 and per-user random salt
  • 3: PBKDF2 with HMAC-SHA1 and per-user random salt with additional MD5 password hashing allowing implementation of secure challenge-response authentication mechanisms such as SCRAM-SHA1 (recommended).

pbkdf2Iterations

int pbkdf2Iterations;

The number of iterations in the PBKDF2 algorithm.

saltLength

int saltLength;

The length of the random per-user salt in bytes.

Securely control IoT edge devices from anywhere   Connect a Device