Select to view content in your preferred language

Adding a secured WMS from GeoServer to AGOL

2739
3
02-12-2019 03:18 PM
DonaldBrown
Frequent Contributor

I have a secured service set up on my organization's GeoServer. I now want to add it to AGOL. My communitity's administrator has gone through the steps to add my domain to the 'list of trusted servers' in AGOL. However, when I log into my organization's AGOL community and 'Add Item' > 'From the Web' > 'WMS (OGC)' and paste in my WMS endpoint:

https://www.sciencebase.gov/geoserver/amscm/wms 

or:

https://www.sciencebase.gov/geoserver/amscm/wms?service=wms&request=getcapabilities 

...I get the message:

Error

Service " does not exist or is inaccessible.

From the below-linked article, I understand that I'm supposed to be prompted for credentials at this point?

I'm not seeing anything in my GeoServer logs.

Can anyone offer any advice or maybe a good tutorial for exactly how to set things up?

I've already read:

OGC—ArcGIS Online Help | ArcGIS 

and

Configure security settings—ArcGIS Online Help | ArcGIS 

0 Kudos
3 Replies
ChrisWhitmore
Esri Regular Contributor

Hi Donald,

In your ArcGIS Online organization's settings, go the Security tab and add the domain for the geoserver to your organization's trusted servers list:

Once you've done that, you should see the prompt to sign in. I added the domain to my organization and confirmed the sign in shows:

Cheers, 

Chris

DonaldBrown
Frequent Contributor

It wasn't prompting me for credentials because my system admin added our domain as 'http', instead of 'https'.

Then it it still wasn't working because of a CORS error that we needed to resolve on our end. What a pain.

0 Kudos
Zagorki
Emerging Contributor

I am having the same issue on Enterprise 11.5. Did you get this resolved? We can make the popup appear after adding the URL to Trusted Servers (note that something gets cached so I have had to use incognito windows in some cases), but cannot actually pass credentials into the dialog box. If credentials are appended to the URL in plain text, it works fine, but obviously not a good solution.

0 Kudos