I'm trying to use the workflow described here to update a hosted feature service:
The script is failing when I attempt to pass my credentials. We're using saml FYI.
As a first attempt to troubleshoot, I've added a client_id to my content in AGOL and am passing that value as part of:
gis =GIS(portal, user, password, client_id). The server still rejects the authentication returning invalid credential errors.
Any advice from the community would be greatly appreciated.
There are some questions:
Are you using Portal or AGOL?
Are you using Built-in or enterprise Identity store?
I did a very easy test on AGOL using the OAuth2 method according to ESRI instruction and it works.
The following is the instruction: