I have a layer that my credentials authorizes my organization to see and use that is published by another organization on AGOL.
When the layer is added to the map in Portal, using the service URL from AGOL, there is a prompt to store the credentials. I enter and save them, and save the map in Portal.
However, every time I open or refresh the map and/or app, I must enter my credentials again. So, it appears that they are not stored. I have reentered them, re-added the layer, all to no avail.
Anyone know a fix to this? Thank you.
In order to store credentials for a secured service, the service url needs to be added as an item under 'My Content'. Assuming the Portal can access the url, you'll see the option to save the credentials. This new item is what needs to be added to the map to avoid having to enter credentials when viewing it later on. If you simply add the service to a map, it will prompt you to enter credentials but will not allow you to store them.
Thank you for the input. Still doesn't work however.
1. Add Item
2. From Web
3. paste the service URL, and choose Type: ArcGIS Server web service
4. A message "A secure service was detected" and I enter the username and password that has access to the layer, and I choose "Store credentials with service item. Do not prompt for authentication"
5. The title is ok, and I assign it a tag.
When I try and view in a map, or add to an existing map, I get the Error Box "The layer, (layer name), cannot be added to the map.
I've scoured help articles, and everything points to using these steps, as you've stated, but nothing works.
Could there be a setting on the layer that is blocking it?
I appreciate any help I can get. Thank you.
What release of Portal are you using? A little over a year ago ArcGIS Online transitioned to use TLS 1.2 only for all HTTPS communication. Included in this transition was also the requirement to use SNI (Server Name Indication). Portal for ArcGIS releases 10.5.1 and later all support this. Earlier releases don't though and one of the issues encountered is not being able to access a service with stored credentials from ArcGIS Online as you described. The following article goes into more detail.
If you are using 10.5.1 or later, it would probably be best to open a support call to help you troubleshoot this further.
I am having same issue for “Portal for ArcGIS 10.7.1” with “Web Server SSL Protocols: TLSv1.2”. However, it is bit different as below:
I appreciate your advice.
That is expected behavior. The option to store credentials when collaborating between Online and Portal does not exist when sharing a secured service. If you want to store credentials for the service from the partner organization, the service url would need to be manually added to the Content page on your portal.