Fortinet white logo
Fortinet white logo

Script Reference Guide

AUTH:result()

AUTH:result()

Gets the authentication result. This command returns the result as an integer.

The following authentication results are defined:

  • 2 — AUTH_CHALLENGE

  • 1 — AUTH_SUCCESS

  • 0 — AUTH_REJECT

Syntax

AUTH:result()

Arguments

N/A

Events

  • HTTP_REQUEST

  • HTTP_RESPONSE

  • HTTP_DATA_REQUEST

  • HTTP_DATA_RESPONSE

  • AUTH_RESULT

Example

when AUTH_RESULT {
    	rt = AUTH: result ()
debug("===>>Authentication result=%d\n", rt)
}

Supported Version

FortiADC version 5.0.x and later.

AUTH:result()

AUTH:result()

Gets the authentication result. This command returns the result as an integer.

The following authentication results are defined:

  • 2 — AUTH_CHALLENGE

  • 1 — AUTH_SUCCESS

  • 0 — AUTH_REJECT

Syntax

AUTH:result()

Arguments

N/A

Events

  • HTTP_REQUEST

  • HTTP_RESPONSE

  • HTTP_DATA_REQUEST

  • HTTP_DATA_RESPONSE

  • AUTH_RESULT

Example

when AUTH_RESULT {
    	rt = AUTH: result ()
debug("===>>Authentication result=%d\n", rt)
}

Supported Version

FortiADC version 5.0.x and later.