Poco::OSP::Web::WebServerDispatcher

struct PathSecurity

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

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)

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