ltm rule command AUTH wantcredential type
iRule(1) BIG-IP TMSH Manual iRule(1)
AUTH::wantcredential_type
Returns an authorization session authidXs credential type.
SYNOPSIS
AUTH::wantcredential_type AUTH_ID
DESCRIPTION
Returns the authorization session authidXs credential type that the system last requested (when the system
generated an AUTH_WANTCREDENTIAL event). The value of the argument is either username, password,
x509, x509_issuer, or unknown, based upon the systemXs assessment of the credential prompt string and style.
AUTH::wantcredential_type
* Returns the authorization session authidXs credential type that the
system last requested (when the system generated an
AUTH_WANTCREDENTIAL event). The value of the argument is
either username, password, x509, x509_issuer, or unknown*.
RETURN VALUE
VALID DURING
EXAMPLES
when AUTH_WANTCREDENTIAL {
HTTP::respond 401 "WWW-Authenticate" "Basic realm=\"\""
}
when AUTH_FAILURE {
log local0. "Auth failed: \
Auth type was \"[AUTH::wantcredential_type $authid]\" \
Auth prompt was \"[AUTH::wantcredential_prompt $authid]\"\
Auth prompt style was \"[AUTH::wantcredential_prompt_style $authid]\"\
"
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-9.0.0 --First introduced the command.
BIG-IP 2020-06-23 iRule(1)