AGOL map viewer configuration vs. Web AppBuilder

4195
6
Jump to solution
10-27-2014 01:45 PM
VenusScott
Occasional Contributor III

I have a secured feature service. Using our organization AGOL account, I've added the feature service using the map viewer configuration and then creating an application with the new GeoForm template. The feature service asks me to sign in and I do so with no issues. When I try to create an editing application with the Web AppBuilder, the secured feature services asks for my login and then presents the following error: "Unable to access the authentication service".  Why would I be able to access the secured feature service one way and not the other?Error.png

0 Kudos
1 Solution

Accepted Solutions
VenusScott
Occasional Contributor III

Stan,

We have the proxy set up and I can see the AGOL services just fine. My issue is that while on AGOL using the WAB tool, I can't configure secured services on our servers. ESRI has logged the bug: [BUG-000082858: When using a secure service with Web AppBuilder, receive the message “Unable to access the authentication service” whenever credentials are provided during the configuration phase].

The work around is "When using either Chrome or Firefox, if you navigate to the REST endpoint of your secure service and sign in with your credentials, the service will display if you return to configure Web AppBuilder."

Thanx!

View solution in original post

0 Kudos
6 Replies
VenusScott
Occasional Contributor III

After contacting ESRI support, it appears I have found a "bug"! Resolution time estimated: Unknown.

0 Kudos
StanMcShinsky
Occasional Contributor III

From what I have found for this issue is that you have to set up a proxy and allow AGOL to talk to your server. If you are using beta 3 then there is a spot at the bottom of the config.json file to put your proxy url. Once I did this the issue went away.

I am not sure which one does it but here are the ones I have in my proxy.config file that reference arcgisonline:

<serverUrl url="http://services.arcgisonline.com"

                   matchAll="true"/>

  <serverUrl url="http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/"

                   matchAll="true"></serverUrl>

  <serverUrl url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/"

                   matchAll="true"></serverUrl>

  <serverUrl url="http://server.arcgisonline.com/arcgis/rest/services/"

                   matchAll="true"></serverUrl>

  <serverUrl url="http://serverapi.arcgisonline.com"

                   matchAll="true"></serverUrl>

0 Kudos
VenusScott
Occasional Contributor III

Stan,

We have the proxy set up and I can see the AGOL services just fine. My issue is that while on AGOL using the WAB tool, I can't configure secured services on our servers. ESRI has logged the bug: [BUG-000082858: When using a secure service with Web AppBuilder, receive the message “Unable to access the authentication service” whenever credentials are provided during the configuration phase].

The work around is "When using either Chrome or Firefox, if you navigate to the REST endpoint of your secure service and sign in with your credentials, the service will display if you return to configure Web AppBuilder."

Thanx!

0 Kudos
NathanielClement1
New Contributor II

Even doing this doesn't work for me. I used the workaround to side step AGOL by manually adding my AGS services to the WAB config file and it worked perfectly. Now that we've decided to add security on the AGS side of each service I get the same sign in error as you. I then log in at the rest point and can view the service but I still get the log in authentication error. Its a shame ESRI doesn't make their products talk to each other or work together. I mean, I'm using AGS, WAB, and services built all within the confines of ESRI's software and its unusable.

0 Kudos
DavidBrett
New Contributor III

Nathaniel Clement wrote:

I used the workaround to side step AGOL by manually adding my AGS services to the WAB config file and it worked perfectly.

Hi,

Would you be so kind as to outline the exact steps needed to and AGS service to the WAB?

Thanks!

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

David,

   The ability to use your own ArcGIS map services was in Beta 2 but does not function in Beta 3 or Version 1.1.