Urlaubsplan
Lade ...
Suche ...
Keine Treffer
Config::Security Klassenreferenz
Klassendiagramm für Config::Security:
Zusammengehörigkeiten von Config::Security:

Öffentliche Attribute

string $csrfProtection = 'cookie'
 
bool $tokenRandomize = false
 
string $tokenName = 'csrf_test_name'
 
string $headerName = 'X-CSRF-TOKEN'
 
string $cookieName = 'csrf_cookie_name'
 
int $expires = 7200
 
bool $regenerate = true
 
bool $redirect = (ENVIRONMENT === 'production')
 
string $samesite = 'Lax'
 

Dokumentation der Datenelemente

◆ $cookieName

string Config::Security::$cookieName = 'csrf_cookie_name'

CSRF Cookie Name

Cookie name for Cross Site Request Forgery protection.

◆ $csrfProtection

string Config::Security::$csrfProtection = 'cookie'

◆ $expires

int Config::Security::$expires = 7200

CSRF Expires

Expiration time for Cross Site Request Forgery protection cookie.

Defaults to two hours (in seconds).

◆ $headerName

string Config::Security::$headerName = 'X-CSRF-TOKEN'

CSRF Header Name

Header name for Cross Site Request Forgery protection.

◆ $redirect

bool Config::Security::$redirect = (ENVIRONMENT === 'production')

CSRF Redirect

Redirect to previous page with error on failure.

Siehe auch
https://codeigniter4.github.io/userguide/libraries/security.html#redirection-on-failure

◆ $regenerate

bool Config::Security::$regenerate = true

CSRF Regenerate

Regenerate CSRF Token on every submission.

◆ $samesite

string Config::Security::$samesite = 'Lax'

CSRF SameSite

Setting for CSRF SameSite cookie token.

Allowed values are: None - Lax - Strict - ''.

Defaults to Lax as recommended in this link:

Siehe auch
https://portswigger.net/web-security/csrf/samesite-cookies
Veraltet
Config\Cookie $samesite property is used.

◆ $tokenName

string Config::Security::$tokenName = 'csrf_test_name'

CSRF Token Name

Token name for Cross Site Request Forgery protection.

◆ $tokenRandomize

bool Config::Security::$tokenRandomize = false

CSRF Token Randomization

Randomize the CSRF Token for added security.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: