Poco::OSP::Web::WebServerDispatcher

struct PathSecurity

File Information

Library: OSP/Web
Package: Web
Header: Poco/OSP/Web/WebServerDispatcher.h

Description

Security attributes for a registered path.

Constructors

PathSecurity inline

PathSecurity();

PathSecurity inline

PathSecurity(
    SpecializationMode aMode,
    const std::string & aRealm,
    const std::string & aPermission,
    bool aSecure = false
);

Variables

authMethods

int authMethods;

enabled authentication methods (see AuthMethod)

csrfProtection

bool csrfProtection;

enable/disable CSRF/XSRF protection

csrfTokenHeader

std::string csrfTokenHeader;

name of header containing CSRF/XSRF token for CSRF/XSRF protection

mode

SpecializationMode mode;

specialization mode (does not apply to pattern)

permission

std::string permission;

required permission empty for none; can also be "*": credentials must be present and valid, or "**": credentials are optional, but if present must be valid.

realm

std::string realm;

realm if a permission (and thus authentication) is required

secure

bool secure;

path requires secure connection

session

std::string session;

name of session for session-based authentication