Connecting to secured services

You must provide credentials when connecting to a secured service. When there are multiple secured services in a single web map or application, anyone connecting to the web map or application must provide credentials for every service. To avoid this, you can create service items that store credentials for each secured service, grant specific groups in your organization access to the service items, and use those service items in your web maps and applications.

Create a service item to store credentials

Steps:
  1. Sign in to the portal.
  2. Open My Content and click Add Item.

    The Add Item window appears.

  3. Choose On the Web from The item is.
  4. Choose ArcGIS Server web service for the item type.
  5. Type the REST URL of the secured service in the URL field.

    If the service is secured, the text A secure service was detected. will appear under the URL.

  6. Enter a user name and password for an account that has access to the service.
  7. Check Store credentials with service item. Do not prompt for authentication.
  8. The service title is automatically populated with the name of the service.
  9. Type or choose tags for the item.
  10. Click Add Item.

The proxy service is added as an item to My Content.

Repeat these steps for each secured service you want to use in your web map or application.

Share the service with a group

As mentioned, you should create a group to share the service item with, and only allow those members of the organization who you want to access your secured service to be members of that group.

Steps:
  1. In My Content, check the box next to the title of the secured service item.
  2. Click Share.

    The Share window opens.

  3. Check the box next to the group with which you want to share the service item, and click OK.

    My Content will show the service is shared with a Group.

Use the REST URL of the service item in maps that contain secured services

When your web map contains multiple secured services, use the REST URLs of the service items in place of the secured service URLs so that people connecting the the web map don't have to provide credentials to connect to every service.

9/1/2015