Services you add from the web or your hosted web layers may be secure. Anyone connecting to a map or app that contains these services or layers must have permission to use them. To avoid access problems, you can add the secure services to your portal as items, grant specific groups in your organization access to the service items, and use the URLs of those service items in your maps and apps.
Import the server certificate from an external organization
Before you can connect to the secure service, you must configure the portal to trust the server certificate from the external organization where the service originates. For example, when you add a secure service from an external ArcGIS Server site, you must import that site's certificate into the portal. This establishes a trust relationship between the site and the portal, allowing you access to the service.
Add the service to the portal
Add the secure service or web layer to the portal. If prompted, store the credentials needed to connect to the service.
- Verify that you are signed in and have privileges to create content.
- From the My Content tab of the content page, click New item.
- Choose URL.
- Type or paste the REST URL of the secure service in the URL field.
- If the portal did not detect what service type is being added, use the Type drop-down list to choose the correct service type.
- Enable the toggle button next to Store credentials with service item. Do not prompt for authentication.
- Optionally, add custom parameters to the service.
- Click Next.
You are prompted to supply the credentials for the secure service.
- Type the user name and password to access the secure service and click OK.
- Choose a folder in My Content where you want to save the item.
- Optionally, type tags that describe the item.
Separate the terms with commas (for example, Federal land is considered one tag; Federal, land is considered two tags).
As you type, you can select any of the suggested tags that appear; suggestions are generated from tags you have added previously.
- The Summary field is populated if the service has a summary. Otherwise, you can provide a summary that describes the service item.
- Click Save.
The service is added as an item to your content page.
Repeat these steps for each secure service you want to use in your portal.
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 secure service to be members of that group.
- On the My Content tab of the content page, check the box next to the title of the secure service item.
- Click Share.
The Share window appears.
- Check the box next to the group with which you want to share the service item and click OK.
The content page shows the service is shared with a Group.
Use the REST URL of the service item in maps that contain secure services
Use the REST URLs of the service items instead of the secure service URLs in your map or app so that people connecting to the map or app don't have to provide credentials to connect to every service.