ASM::login_status¶
Description¶
Returns status of the login session tracked by one of the login pages defined in the policy.
Following are the possible values:
- not_logged_in: The request is not within a login session.
- logging_in: The request is to a login URL.
- logged_in: The request is within a login session, indicates a successful login in the ASM_RESPONSE_LOGIN event.
- failed: The login attempt is failed, triggered only in the ASM_RESPONSE_LOGIN event.
Examples¶
when ASM_RESPONSE_LOGIN {
if {[ASM::login_status] eq "logged_in"} {
log local0. "User [ASM::username] logged in succesfully."
}
else {
log local0. "Login attempt to [ASM::username] failed."
}
}