I'm having some issues with using tokens I generate from a Python script by hitting a public ArcGIS Server's generateToken endpoint.
Our IT routes traffic in some convoluted ways (which is to say dynamically) such that using a token generated from a generateToken request using 'client':'requestip' in the parameters sometimes will end up with a token denied error. Basically, if the generateToken request first comes from ip address B, but then the REST request comes from IP address B but uses the token generated from ip address A, I'll get an error.
I'm curious if there is a way around this somehow without going through IT. I'm unclear how I would use 'client':'referer' in the generateToken request, since this is coming from a Python script being run on a server and not a webapp. Is this even possible?