ArcGIS Online Oauth2.0 generateToken does not work?

485
0
03-03-2021 05:22 PM
StoneYuan
New Contributor

In proxy.ashx, the exchangePortalTokenForServerToken method cannot be generated as a server-token. The log is as follows:

2021-03-04 09:17:41 Matching credentials found in configuration file. OAuth 2.0 mode: True
2021-03-04 09:17:41 Service is secured by https://stoneyuan.maps.arcgis.com/sharing/rest/oauth2/: getting new token...
2021-03-04 09:17:41 Sending POST request: https://stoneyuan.maps.arcgis.com/sharing/rest/oauth2/token?client_id=aqoFTzbFLLud4CWJ&client_secret...
2021-03-04 09:17:42 Token obtained: Yb3IfVMV1f4j035iim3a5gsjVaWpBtNAg-tCIU1y-uqQNf1VorI9m1fqUdsqOhK_1ctBQIA_RQ8-cgTyODd3eQjl__6K0EgRA7rr4Ic7kzTbAz_tJVXe5zWPXhW5LrvPi60729TkS1L59GJ5PP2bOA..
2021-03-04 09:17:42 Exchanging Portal token for Server-specific token for https://gzarcgis1061.cipplanner.net:6443/arcgis/rest/services...
2021-03-04 09:17:42 Sending POST request: https://stoneyuan.maps.arcgis.com/sharing/rest/generateToken?token=Yb3IfVMV1f4j035iim3a5gsjVaWpBtNAg...
2021-03-04 09:17:42 Token obtained: ["Unable to generate token for this server"

0 Kudos
0 Replies