ASM::username¶
Description¶
Returns the username from a login attempt throughout the login session.
If there is no login session or the login page in the policy does not
extract credentials, then an empty string is returned.
Examples¶
when ASM_REQUEST_DONE {
if {[ASM::is_authenticated]} {
log local0. "This request was sent by user [ASM::username]."
}
}