Hello,
I have been using the ArcGis Online auth service with some web maps and now we're migrating to our own internal server. We're using client_credentials, so a typical URL would look like this:
https://www.arcgis.com/sharing/rest/oauth2/token?client_id=<clientId>&client_secret=<client_secret>&grant_type=client_credentials
On our server, the portal URL is https://our.internal.url.com/portal/. So, our auth URL should be (if I'm correct):
https://our.internal.url.com/portal/sharing/rest/oath2/token?client_id=<client_id>&client_secret=<cl....
However, when I hit that, I get 400 Bad Request with the message "Error: Invalid URL". What am I doing wrong? 400 Bad Request means it's able to access the URL, so I don't think it's an access or routing issue... but no clue what else to check or try.
Any ideas?