ASM::is_authenticated

Description

Returns true if the user in the present request is logged in, that is,
the user is authenticated successfully in one of the login pages defined
in the policy and the session has not expired. This is synonymous
to [ASM::login_status] eq “logged_in”.

Syntax

ASM::is_authenticated

Examples

when ASM_REQUEST_DONE {
    if {[ASM::is_authenticated]} {
        log local0. "This request was sent by user [ASM::username]."
    }
}