Greetings,
I cannot login to AGOL/Portal since moving to Python 3.8.
The sample code is:
from IPython.display import displayfrom arcgis.gis import GISimport osusername = "arcgis_python"password = "P@ssword123"gis = GIS("https://www.arcgis.com", username, password)I have replaced with my values, and have a token.
But keep getting a tokenURL or the token is not valid error??
I also tried:
from arcgis.features import FeatureLayer, GeoAccessor, GeoSeriesAccessor
from arcgis.geoenrichment import enrich
from arcgis import dissolve_boundaries
from arcgis.geometry import project
from arcgis.gis import GIS
# Organization Login
## gis = GIS('http://www.arcgis.com', 'username', 'password')
portal_url = url
token=mytoken
gis = portal_url+token
print("Logged IN to portal URL")
cfa_url=url+token
cfa_fl = FeatureLayer(cfa_url+token)
dc_df = GeoAccessor.from_layer(cfa_fl)
display(dc_df.head())
I want to automatically login to AGOL/Portal to home or contents, to browse the MapServices, FeatureServices, etc..
Any assistance is appreciated.