Issue when Specifying a Referer for GenerateTokenOptions

Discussion created by dwtimmins on Nov 20, 2013
Latest reply on Nov 25, 2013 by dwtimmins

if you use IdentityManager.Current.GenerateCredentialTaskAsync and specify a Referer value by setting it in the GenerateTokenOptions then the token is generated correctly. If you then set the token for a layer though the request fails saying that the token is invalid. I believe this is due to the referer value not being set as a HTTP header for subsequent requests. The only place I've seen this documented is at http://resources.arcgis.com/en/help/arcgis-rest-api/#/Accessing_services/02r3000000nm000000/ though if I use the composer in fiddler to send the request with the token and I manually enter the referer as a header the request succeeds.