Select to view content in your preferred language

Cannot save login credentials for secured service

10439
16
04-23-2014 06:36 AM
MarkLeVeque
Deactivated User
Until this morning I have been able to save login credentials to secure ArcGIS map services that I add to maps in ArcGIS Online.  Now this morning I am not getting that option any more, but instead must enter the credentials every time I open the map.

I note this in the help documentation:
. You can add secure services created with ArcGIS Server 10 SP1 and higher if you know the user name and password. You will be prompted for this information when you add a secure service to the map. Anybody viewing your map will also be prompted for the login.

This is different from what ArcGIS Online allowed as recently as a few days ago.  In the "What's New" section of ArcGIS Online Help I do not see any reference to any change regarding secure services.

Can someone please enlighten me on why I can't save the login credentials when I add the service?  If this feature has been removed, it will have a severe impact on the way we use ArcGIS Online.
Tags (2)
0 Kudos
16 Replies
ChadKopplin
Frequent Contributor

Mikkel, when you publish the service are you making it available to everyone, and then once it is available, are you going into AGOL and creating a User/Role and securing the service with that User/Role in AGOL?

0 Kudos
MikkelHylden
Regular Contributor

Not exactly.  I had created the service as secured in our server instance, but when I added it to AGOL by connecting to that AGS instance, I didn't check the box to 'save credentials', so whenever a user was accessing the service first or refreshed the page they were asked to log in again.  I think that as CE Howard mentioned above, I can create a new Map Image service in AGOL, and then use AGOL Assistant to change the service URLs in my Web Map to point to the new service that does have the credentials saved.

0 Kudos
MarkLeVeque
Deactivated User
Hi,

Are you adding the secure service direct to a map, or referencing it through My Content?

Login details can only be saved through My Content. If you add it direct to a map you will always be asked for details.
Please find a workflow below:


  • Go to My Content

  • Add Item > On the Web

  • Paste in the URL of the basemap

  • ArcGIS Online will detect it�??s a secure service and ask you for the credentials and whether you want them stored.

  • Click Add Item to save the service in My Content

  • Go to the Map tab and create a new map

  • Click Add > Search for layers

  • Search for your service name

  • Click Add to add it to your map

  • If you want to use the map as a basemap then rather than clicking Add from the search results you need to click the name

  • This open a new dialog box that allows you to �??Use As Basemap�?�

  • The standard basemap is now replaced with your new map service


Regards,

Dave



Thanks for this response.  Yes, that was the exact problem.  I was trying to take a shortcut by creating the map first and then adding the map layer to the report before I registered it.  If I click "Add Item" first as you describe above I still get the option to save my user credentials.
0 Kudos
JörgMoosmeier
Esri Contributor
Hi,
I'm using this exact workflow and it works fine when I am referring to an ArcGIS for Server which is visible in the internet.

When I'm trying to add an secured service from an internal ressource (not visible for the internet) I can add it when I choose the option 'Do not store....' Everything works as expected.
When I choose the option to store the credentials I always get the message 'Invalid service credentials'.
Can I only store the credentials for secured services, when the server/service is visible in the Internet?

Thank you,
JM
0 Kudos
MikeMinami
Esri Notable Contributor

Jörg Moosmeier

Yes, the service has to be externally visible. There is no way for AGOL to validate the credentials if the service is not visible.

Mike

0 Kudos
by Anonymous User
Not applicable

I'm having the same problem, but I'm going through My Content > Add Item > From the web. It's not prompting me to store.

0 Kudos
NathanBruce1
Regular Contributor

Regarding the same issue, I bumped into this because of a lack of knowledge.  I kept inputting the general internal server URL rather than the URL thrown by the web connector in the add items menu of ArcGIS Online.  It would accept the internal and post the data but not offer the credential storing options below the credential input from the add items menu.  Once I used the proper web adapter URL the options appeared.     

0 Kudos