Problem with parameters for token generation

325
0
01-20-2023 12:04 PM
ekleiman22
New Contributor II

For use of ArcGIS REST securing service I need to add a token to its URL. There are some parameters that should be passed to the server to generate a token, it is explained here 

https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm 

For example, for "IP address" case

username=admin&password=test1234&client=requestip&ip=&referer=&expiration=60&f=json

A token is really generated but it is wrong. Only when I use more short string such as

username=admin&password=test1234&expiration=60&f=json

it returns a valid token. But it should be default case that is case of HTTP referer. So I need to know why this way does not work. It works in previous versions of ArcGIS server, but does not work in the last one - ARCGIS 10.9 

Tags (2)
0 Kudos
0 Replies