AnsweredAssumed Answered

Secure Service Layers : "You are not authorized to access this information"

Question asked by philojuan on Apr 10, 2015
Latest reply on Jun 1, 2015 by LDanzinger-esristaff

I am trying to add a secure FeatureService layer to my map, eventually I also want to take the data offline for editing as well. I am unable to do this using embedded usercredentials as below. I have double checked and triple checked the credentials and it works in other places just not here.

 

 

 

GeodatabaseFeatureServiceTable {

        id: featureServiceTable

        url: "http://domain.com/service/FeatureServer/0" // replacing with dummy layer

        credentials: userCredentials

    }

 

 

    UserCredentials {

        id: userCredentials

        userName: "DOMAIN\USERNAME"

        password: "PASSWORD"

    }

 

 

In my Map I have

 

FeatureLayer {

id:featurelayer

featureTable: featureSErviceTable

// also tried to use credentials: userCredentials here.

}

 

 

The error log is

ArcGIS.Runtime.Feature: void __cdecl QmlFeatureTable::onInitializeComplete(const class QString &) EsriRuntimeQt::GeodatabaseFeatureServiceTable(0x1c7913c1e0)

ArcGIS.Runtime.Layer: void __cdecl QmlLayer::onLayerCreateError(const class QString &) QmlFeatureLayer_QML_52 "" "You are not authorized to access this information"

Outcomes