Solved! Go to Solution.
Without setting the referrer, there are always 2 token requests when obtaining a token. The first fails saying Referrer must be specified. Then IdentityManager must recognize that and it adds Client=requestip, which gets the token.
However, it does fail 25-50% of the time on that second request too.
With the referrer set, we only get 1 token request, because the first request has client=referrer and referrer=arcgis.com in the request. I tried 20+ times and I never got the failure I've been seeing, so this seems very promising.
What is the recommended value for referrer since this isn't a web-based application we're using? I didn't get a solid feel for that based on the API documentation.
Without setting the referrer, there are always 2 token requests when obtaining a token. The first fails saying Referrer must be specified. Then IdentityManager must recognize that and it adds Client=requestip, which gets the token.
However, it does fail 25-50% of the time on that second request too.
With the referrer set, we only get 1 token request, because the first request has client=referrer and referrer=arcgis.com in the request. I tried 20+ times and I never got the failure I've been seeing, so this seems very promising.
What is the recommended value for referrer since this isn't a web-based application we're using? I didn't get a solid feel for that based on the API documentation.