Fortinet white logo
Fortinet white logo

Script Reference Guide

PROXY:set_auth_key(value)

PROXY:set_auth_key(value)

Customize the crypto key FortiADC used for encrypt/decrypt authentication cookie name "FortiADCauthSI". This will increase your FortiADC's security so that others cannot forge this authentication cookie.

Syntax

PROXY:set_auth_key(value);

Arguments

Name Description

value

A string which will be used to encrypt/decrypt the authentication cookie.

Events

Applicable in the following events:

  • VS_LISTENER_BIND

  • TCP_BIND

Example

when VS_LISTENER_BIND {
AUTH_KEY = “0123456789ABCDEF0123456789ABCDEF”
result = PROXY:set_auth_key(AUTH_KEY)
If result then
Debug(“set auth key succeed\n”)
end
}

Supported Version

FortiADC version 5.2.x and later.

PROXY:set_auth_key(value)

PROXY:set_auth_key(value)

Customize the crypto key FortiADC used for encrypt/decrypt authentication cookie name "FortiADCauthSI". This will increase your FortiADC's security so that others cannot forge this authentication cookie.

Syntax

PROXY:set_auth_key(value);

Arguments

Name Description

value

A string which will be used to encrypt/decrypt the authentication cookie.

Events

Applicable in the following events:

  • VS_LISTENER_BIND

  • TCP_BIND

Example

when VS_LISTENER_BIND {
AUTH_KEY = “0123456789ABCDEF0123456789ABCDEF”
result = PROXY:set_auth_key(AUTH_KEY)
If result then
Debug(“set auth key succeed\n”)
end
}

Supported Version

FortiADC version 5.2.x and later.