Fortinet white logo
Fortinet white logo

Script Reference Guide

AUTH:author_type()

AUTH:author_type()

Gets the authentication behavior type. This command returns the type as an integer.

There are two types:

  • 0 — AUTHOR_401

  • 1 — AUTHOR_ALWAYS

Both types are used for HTTP basic Auth relay to describe the behavior when relaying. The authentication behavior type determines whether to send the HTTP authentication header after encountering a 401, or to send the HTTP authentication header regardless of encountering a 401.

Syntax

AUTH:auth_flags()

Arguments

N/A

Events

  • HTTP_REQUEST

  • HTTP_RESPONSE

  • HTTP_DATA_REQUEST

  • HTTP_DATA_RESPONSE

  • AUTH_RESULT

Example

when AUTH_RESULT {
    atype = AUTH:author_type()
debug("===>>authentication behavior type=%d\n", atype)
}

Supported Version

FortiADC version 5.2.x and later.

AUTH:author_type()

AUTH:author_type()

Gets the authentication behavior type. This command returns the type as an integer.

There are two types:

  • 0 — AUTHOR_401

  • 1 — AUTHOR_ALWAYS

Both types are used for HTTP basic Auth relay to describe the behavior when relaying. The authentication behavior type determines whether to send the HTTP authentication header after encountering a 401, or to send the HTTP authentication header regardless of encountering a 401.

Syntax

AUTH:auth_flags()

Arguments

N/A

Events

  • HTTP_REQUEST

  • HTTP_RESPONSE

  • HTTP_DATA_REQUEST

  • HTTP_DATA_RESPONSE

  • AUTH_RESULT

Example

when AUTH_RESULT {
    atype = AUTH:author_type()
debug("===>>authentication behavior type=%d\n", atype)
}

Supported Version

FortiADC version 5.2.x and later.