Closed wyogisguru closed 8 years ago
@wyogisguru if you have a service, then you would use an AGSSecurity token handler. If you don't need security, then pass None.
You do not want to use the security handler helper, can you share the rest of your code?
closed to no response.
When filling in the parameters below for a non secure public feature server(NOT Portal, ArcGIS Rest Feature Server), which parameters should I fill for the securityinfo? Keep getting invalid token when a token shouldn't be required.
Error appInfo - attribute not implemented in Portal class. authorizedCrossOriginDomains - attribute not implemented in Portal class. appInfo - attribute not implemented in Portal class. authorizedCrossOriginDomains - attribute not implemented in Portal class. {u'message': u'Invalid Token', u'code': 498, u'details': []} error - attribute not implemented in Feature Layer.
securityinfo = {} securityinfo['security_type'] = 'Portal'#LDAP, NTLM, OAuth, Portal, PKI, ArcGIS securityinfo['username'] = "" #User Name securityinfo['password'] = "" #password securityinfo['org_url'] = "http://www.arcgis.com" securityinfo['proxy_url'] = proxy_url securityinfo['proxy_port'] = proxy_port securityinfo['referer_url'] = None securityinfo['token_url'] = None securityinfo['certificatefile'] = None securityinfo['keyfile'] = None securityinfo['client_id'] = None securityinfo['secret_id'] = None