Abed_AL-R
Dec 21, 2021Cirrostratus
google 2fa irule error
I'm struggling with this error when doing "load sys config verify
[use curly braces to avoid double substitution]
full error message
/Common/Google_Token:131: warning: [use curly braces to avoid double substitution][(0x{[string range ${token} ${offset} [expr {${offset} + 7}]]}]
The irule line in original code was
set ga_code [expr (0x[string range $token $offset [expr $offset + 7]] & 0x7FFFFFFF) % 1000000]
And I changed it to
set ga_code [expr (0x[string range ${token} ${offset} [expr {${offset} + 7}]] & 0x7FFFFFFF) % 1000000]
I'm able to connect to APM and passing the token , it is working fine there, but this cannot get rid of this error message
Any one can help with the correct syntax ?
article https://support.f5.com/csp/article/K57410758 seems not to be very helpful