Adding a secured WMS from GeoServer to AGOL

655
2
02-12-2019 03:18 PM
Occasional 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 

Reply
0 Kudos
2 Replies
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

Occasional 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.

Reply
0 Kudos