Hello All,
Can anybody tell me the correct way to generate a token from the portal rest endpoint? the following returned "method not supported".
https://www.abc.com/portal/sharing/rest/generateToken?username=<username>&password=<password>&client=referer&referer=<url>&expiration=1440
the generateToken is a post only. I was able to use codes via a post to generate a token from portal.
I'm trying to do similar, but when I send the POST, I get an error that username and password should not be sent via query parameters. This is true even if I set the allowHttpPostQueryParams = true.
Any ideas what might be wrong on my end?
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.