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?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.