AUTH:pass()
Returns the password in the authentication.
Syntax
AUTH:pass();
Arguments
N/A
Events
Applicable in the following events:
-
AUTH_RESULT
-
HTTP_REQUEST
-
HTTP_DATA_REQUEST
-
HTTP_RESPONSE
-
HTTP_DATA_RESPONSE
Example
when AUTH_RESULT {
on_off = AUTH:on_off()
succ = AUTH:success()
fm = AUTH:form_based()
user = AUTH:user()
pass = AUTH:pass()
userg = AUTH:usergroup()
realm = AUTH:realm()
host = AUTH:host()
debug(“authentication form based %s, on_off %s, success %s, the user %s, pass %s, realm %s, the usergroup %s, host %s\n”, fm, on_off, succ, user, pass, realm, userg, host)
}
Result:
authentication form based true, on_off true, success true, the user test, pass test, realm Form333333, the userg test, host 10.1.0.99
Supported Version
FortiADC version 5.2.x and later.