HTML::...tToken(3pm)
π NAME π
Bestie, welcome to the HTML::FormHandler::Field::RequestToken(3pm) page β the one your header shows as HTML::...tToken(3pm) β part of the User Contributed Perl Documentation. This is a hidden text field that contains a unique time-stamped token. Periodt. β¨
πΈ VERSION πΈ
This is version 0.40068. Slay. π
π¦ SYNOPSIS π¦
Here's the code vibe, bestie:
with 'HTML::FormHandler::Field::Role::RequestToken';
...
has_field '_token' => (
type => 'RequestToken',
);
π₯ DESCRIPTION π₯
Okay so this field exists to prevent CSRF attacks. It contains an encrypted token that has an expiration time for the form inside it. The big flex? No data needs to be persisted in the user's session or on the server. None. Zero. Nada. π
π ATTRIBUTES π
β¨ expiration_time β¨
It's the length of time (in seconds) that the token will be accepted as valid from the time it is initially generated. Defaults to 3600.
β¨ token_prefix β¨
An optional string to prepend to the token value before encrypting it. If specified, any received tokens must begin with this value to be accepted as valid. Defaults to an empty string.
Passed on form process: $c->sessionid . '|'
β¨ crypto_key β¨
Key to use to encrypt/decrypt the token payload. π
β¨ crypto_cipher_type β¨
The Crypt::CBC cipher to use to encrypt/decrypt the token payload. Defaults to Blowfish.
β¨ message β¨
Error message if token is missing/invalid. π¨
β¨ cipher β¨
A Crypt::CBC object to handle encrypting/decrypting the token payload. If not specified, crypto_key and crypto_cipher_type will be used to construct one. π§
β¨ verify_token β¨
Validates whether the specified token is currently valid for this form. β
β¨ get_token β¨
Generates a new token and returns it. π
π AUTHOR π
FormHandler Contributors - see HTML::FormHandler. π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2017 by Gerda Shank. π
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Okay, that's the whole page, bestie. This footer energy came from perl v5.34.0, dated 2022-03-25, on the HTML::...tToken(3pm) page. Mwah π
π¦ where this page comes from
- debian bookworm: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms