AUTH:method()
Gets the authentication method. This command returns the method as an integer.
The following methods are defined:
-
-1 — HTTP_AUTH_WRONG
-
0 — HTTP_AUTH_UNKNOWN
-
1 — HTTP_AUTH_BASIC
-
2 — HTTP_AUTH_DIGEST
-
3 — HTTP_AUTH_FORMBASEING
-
4 — HTTP_AUTH_FORMBASED
-
5 — HTTP_AUTH_NTLM
Syntax
AUTH:method()
Arguments
N/A
Events
-
HTTP_REQUEST
-
HTTP_RESPONSE
-
HTTP_DATA_REQUEST
-
HTTP_DATA_RESPONSE
-
AUTH_RESULT
Example
when AUTH_RESULT {
meth = AUTH:method()
debug("===>>Authentication method=%d\n", meth)
}
Supported Version
FortiADC version 5.2.x and later.