generate a token with arcgis server url

1558
2
11-02-2020 11:41 AM
MRReddy
Occasional Contributor

in 10.3 server some of my apps configured to get token from httpGet

with these sample format url, i used to generate token by passing values,  https://abc.123.com/webAdapterName/tokens/generateToken

recently we upgraded to 10.8 enterprise portal architecture

https://Newabc.123.com/webAdapterName/tokens/generateToken

the message i get is "HTTP GET is disabled"

from this page Enable token acquisition through an HTTP GET request—ArcGIS Server | Documentation for ArcGIS Enterp... , i added " "allowHttpGet": "true"" and updated the token.

after that, i get result as below

Any suggestions please, for generating tokens, with the rest api, am trying to use it in c#

Thanks

Tags (2)
0 Kudos
2 Replies
RandyBurton
MVP Alum

For security reasons, you would not want the username and password appended to the URL and sent unsecured as is the case for a get request.  Look in your documentation on how to generate a post request.

For reference: HTTP Methods GET vs POST

bpeters_WES
New Contributor

did you ever solve this? 

0 Kudos