Cannot add service to ArcGIS online

1311
1
01-29-2018 06:43 AM
RaymondGoins
Occasional Contributor

I have several services published to my ArcGIS enterprise. Here is some server information

ArcGIS Portal

Windows Server 2016

Portal 10.5.1

Tomcat Web server for web tier authentication connecting to LDAP server

Webadaptor name https://gisportal.mydomain.com/portal

ArcGIS Server

Windows Server 2016

ArcServer 10.5.1

Webadaptor Name https://engineering.mydomain.com/arconline

The Server is federated with Portal.

My arcserver is accessible to the internet through the webadapter, my gisportal is not. What I am trying to do is add a web service to my arcgis online account which is hosted on my enterprise server. I keep getting a generate token error even though it seems to be getting a token. I have attached some screen shots to show.

As you can see it does connect to my server and recognize it is secure and asks for my username and password. I enter the information EXACTLY as it is in my portal. both the username and password match in case. This is what is returned.

As you can see it looks like the first time is requests a token through POST it does receive the token, but then it seems to request a token through GET, and that returns an "Unable to generate token" error I am not sure if this is a bug on ESRI's side or if I need to change some settings on my end. I have been on the phone with ESRI for days now and have not been able to resolve. I am reaching out to the community for some extra help hoping someone has run into this.

Thanks in advance for your help

Ray

0 Kudos
1 Reply
KellyGerrow
Esri Frequent Contributor

Hey Raymond Goins

It looks like you are trying to store credentials for a service which is using web-tier authentication. It isn't possible to store credentials with services that are enabled to use Web-Tier Security, it is only available for token based security:

ArcGIS Server web services—ArcGIS Online Help | ArcGIS 

If you are using web tier authentication, consider adding your ArcGIS Server as a trusted server in the security settings to enable credentials to be sent when making CORS requests:

Configure security settings—ArcGIS Online Help | ArcGIS 

This thread also has some additional information:

https://community.esri.com/message/570749?sr=search&searchId=65841b4a-81c5-4241-a6ea-d57ce64b81d4&se...

-Kelly

0 Kudos