Esri / ArcREST

python package for REST API (AGS, AGOL, webmap JSON, etc..)
Apache License 2.0
192 stars 155 forks source link

securityinfo #181

Closed wyogisguru closed 8 years ago

wyogisguru commented 8 years ago

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

achapkowski commented 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.

MikeMillerGIS commented 8 years ago

You do not want to use the security handler helper, can you share the rest of your code?

achapkowski commented 8 years ago

closed to no response.