<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Authenticating OnlineRouteTask qt10.2.3, oauth2.0.. and which URL in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391340#M1964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jakob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right that you should be using the following service: &lt;SPAN style="color: #183691; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Froute.arcgis.com%2Farcgis%2Frest%2Fservices%2FWorld%2FRoute%2FNAServer%2FRoute_World" rel="nofollow" target="_blank"&gt;https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a few options with UserCredentials. The first is to determine if you need to use OAuth authentication or if regular http tokens will suffice. If so, you can obtain the username and password from your user, and set those on the user credentials, and then set the route task's credential property to that instance of UserCredentials. This is the simplest option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do need to use OAuth, then we didn't officially support this until 10.2.6. You &lt;EM&gt;might&lt;/EM&gt; be able to get this to work still be manually acquiring the token like you are doing. The referer should refer to the App ID that you get when you register your app on developers.arcgis.com. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 16:49:50 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2015-09-22T16:49:50Z</dc:date>
    <item>
      <title>Authenticating OnlineRouteTask qt10.2.3, oauth2.0.. and which URL</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391334#M1958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="line-height: 1.5;"&gt;(executive summary: I'm looking for working samples of how to (oauth2-)authenticate 10.2.3-&lt;SPAN style="color: #800080;"&gt;OnlineRouteTask to work with &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="line-height: 1.5;"&gt;online routing services; additionally what the correct URLs of those are.)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Actually, the oauth2 part is the only thing not causing me problems..?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;It's the issue of how to pass that info on to ESRI/&lt;SPAN style="color: #800080;"&gt;OnlineRouteTask&amp;nbsp; in a way that works?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&lt;BR /&gt;I can correctly get an access_token from &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com%2Fsharing%2Frest%2Foauth2%2Ftoken%2F" rel="nofollow" target="_blank"&gt;https://www.arcgis.com/sharing/rest/oauth2/token/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;with &lt;SPAN style="color: #800080;"&gt;QNetworkRequest.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt; But I don't know how to instantiate ER::OnlineRouteTask with this info?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #800080;"&gt;(note: my code succeeds in getting an online route, if I use&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #800080;"&gt;the public sampleserver6.arcgisonline.com service without authentication.)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;&lt;SPAN style="color: #800080;"&gt;OnlineRouteTask &lt;/SPAN&gt;accepts an ER::UserCredentials argument,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;but UC requires a 'referer', which I don't know what is?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;&amp;nbsp; The docs for&amp;nbsp; '&lt;SPAN style="color: #800080;"&gt;UserCredentials' are quite unclear,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;but suggest it would contact the oauth server itself? (ie so I can't init it with data I've procured?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;(I also don't know, if it's for oauth1.0 or oauth2.0?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;The only 'docs' I've found are https: //developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_user_credentials.html&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;The whole thing is worsened by, that none of it gives proper error messages;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;instead, the 3 kinds of "responses" I get from ArcGisRuntime are&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;(1) whole map square turns blue? (this seems to happen if you attempt to configure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;a RouteTask wrongly?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;(2) "routetask.solve" is started silently, but nothing every returns, neither success nor failure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;(3) some spurious stack trace crash in some "validateLicenseEsriforEmail??".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Also, I can't figure out which URL to actually use for online routing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The ones I suspect to be correct, reply with "directory listing has been disabled for this item"&lt;/P&gt;&lt;P&gt;if I try to access them from a browser?&lt;/P&gt;&lt;P&gt;e.g. http: //route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I'm using 10.2.3, because porting to 10.2.6 require more changes to our code base&lt;/P&gt;&lt;P&gt;than we have time for in our app release timeframe, e.g. 'graphicIds' changed from sync to async.&lt;/P&gt;&lt;P&gt;I have already ported our code to 10.2.6 (in a separate branch), which taught me&lt;/P&gt;&lt;P&gt;that it will take us a long time to fully port to 10.2.6 (ie where all features are working again.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My outset is the ArcGIS Runtime-SDK-for-Qt samples,&lt;/P&gt;&lt;P&gt;specifically the "Routing(Online)" sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it makes no hint at how to authenticate,&lt;/P&gt;&lt;P&gt;and it uses demo server &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;http: //sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" title="http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"&gt;&lt;SPAN style="color: #3d3d3d; line-height: 1.5;"&gt;(also, I see the same example in 10.2.6 demos?)&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some URL's I've found are &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;http: //logistics.arcgis.com/arcgis/rest/services/World/Route/GPServer/FindRoutes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(but can this be used for Qt, or this intended for other sdk's? How does one find this out?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the one I suspect is the right one to use:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Froute.arcgis.com%2Farcgis%2Frest%2Fservices%2FWorld%2FRoute%2FNAServer%2FRoute_World" rel="nofollow" target="_blank"&gt;http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;but probably it should be https' - &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Froute.arcgis.com%2Farcgis%2Frest%2Fservices%2FWorld%2FRoute%2FNAServer%2FRoute_World" rel="nofollow" target="_blank"&gt;https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;However, if I try it, I don't get any errors.. I just never get any response from '.solve()' :-(.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, my code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;STRONG&gt;&amp;nbsp; QString token, ref;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;STRONG&gt;&amp;nbsp; token = EgisProj2::access_token;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp; ref = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com%2Fsharing%2Frest%2Foauth2%2Ftoken%2F" rel="nofollow" target="_blank"&gt;https://www.arcgis.com/sharing/rest/oauth2/token/&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;STRONG&gt;&amp;nbsp; ER::UserCredentials creds;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;STRONG&gt;&amp;nbsp; creds.setUserToken(token, ref);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;STRONG&gt;&amp;nbsp; m_routingTask = ER::OnlineRouteTask(actualURL, creds);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which, when used with &lt;SPAN style="color: #008000;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Froute.arcgis.com%2Farcgis%2Frest%2Fservices%2FWorld%2FRoute%2FNAServer%2FRoute_World" rel="nofollow" target="_blank"&gt;https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;yields.. nada.. no error msg, no reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;I'm finding I'm almost spending more time trying to resolve the authentication aspects of the app,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;than I'm spending doing business logic app development with ESRI for my companies' actual domain&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;- not exactly what I was hoping for in a productivity library :-(.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;What puzzles me the most, is that I get no hits when googling any of this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;- it feels as if I'm the last man on earth still using Qt.&amp;nbsp;&amp;nbsp; Which I don't quite understand,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;because it's a wonderful library.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 13:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391334#M1958</guid>
      <dc:creator>JakobGaardsted</dc:creator>
      <dc:date>2015-09-22T13:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticating OnlineRouteTask qt10.2.3, oauth2.0.. and which URL</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391335#M1959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Additional info: Actually, one of the assumed URL's I've found for the online routing service, from googling and older examples, is this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Ftasks.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FNetworkAnalysis%2FESRI_Route_NA%2FNAServer%2FRoute" rel="nofollow" target="_blank"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Route&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;however, trying to use it with Esri 10.2.3, I just get this error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;SPAN style="color: #008000;"&gt;'There&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;was&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;an&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;error&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;solving&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;the&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;route.&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;Unable&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;complete&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;operation.&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'attributeParameterValues'&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;parameter&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;invalid'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;Given that the same service can be easily used 'by hand' (ie by just filling out the REST arguments by hand),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;this error suggests that arcgis-10.2.3 is somehow filling out the request parameters wrongly..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt; And I can't figure out, what I can control/change, that would affect 'invalid &lt;SPAN style="color: #008000;"&gt;attributeParameterValues'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;My impression is that '&lt;SPAN style="color: #008000;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Ftasks.arcgisonline.com" rel="nofollow" target="_blank"&gt;http://tasks.arcgisonline.com&lt;/A&gt;&lt;SPAN&gt;' is just an older demo version of the API that is not currently relevant.&amp;nbsp; To me, I thought it might help to figure out how to authenticate this service my company is paying for the &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;allegedly&amp;nbsp; &lt;/SPAN&gt;privilege of accessing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 14:14:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391335#M1959</guid>
      <dc:creator>JakobGaardsted</dc:creator>
      <dc:date>2015-09-22T14:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticating OnlineRouteTask qt10.2.3, oauth2.0.. and which URL</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391336#M1960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Further: based on current web docs, this is (approx..) the URL I assume to be correct for async online routing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Flogistics.arcgis.com%2Farcgis%2Frest%2Fservices%2FWorld%2FRoute%2FGPServer%2FFindRoutes" rel="nofollow" target="_blank"&gt;https://logistics.arcgis.com/arcgis/rest/services/World/Route/GPServer/FindRoutes&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;// submitJob?parameters");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;(here I assume that the 'submitJob/parameters' part will be handled by arcGisRuntime..?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;based on this link:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/02r3/02r300000275000000.htm" title="http://resources.arcgis.com/en/help/arcgis-rest-api/02r3/02r300000275000000.htm"&gt;ArcGIS REST API - Route servicewith asynchronous execution&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;http: //resources.arcgis.com/en/help/arcgis-rest-api/02r3/02r300000275000000.htm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;But using that doesn't give any result, not even an error.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 14:28:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391336#M1960</guid>
      <dc:creator>JakobGaardsted</dc:creator>
      <dc:date>2015-09-22T14:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticating OnlineRouteTask qt10.2.3, oauth2.0.. and which URL</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391337#M1961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For fun and out of desperation, I even tried this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Flogistics.arcgis.com%2Farcgis%2Frest%2Fservices%2FWorld%2FRoute%2FGPServer%2FFindRoutes%2FsubmitJob%3Ftoken%3Dincluded_my_returned_token_here" rel="nofollow" target="_blank"&gt;https://logistics.arcgis.com/arcgis/rest/services/World/Route/GPServer/FindRoutes/submitJob?token=included_my_returned_token_here&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;as argument for &lt;SPAN style="color: #800080; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;OnlineRouteTask , but it gave as little result as everything else.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;To sum up: the only things I get "working"/reacting with OnlineRouteTask, are &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;http: //sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;(the sandiego sample)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Ftasks.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FNetworkAnalysis%2FESRI_Route_NA%2FNAServer%2FRoute" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000; text-decoration: underline;" target="_blank"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Route&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;.. because it at least reacts with an error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Sadly, our clients live everywhere else but San Diego &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 14:39:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391337#M1961</guid>
      <dc:creator>JakobGaardsted</dc:creator>
      <dc:date>2015-09-22T14:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticating OnlineRouteTask qt10.2.3, oauth2.0.. and which URL</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391338#M1962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing: I noticed, that the code hangs already in&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;m_routingTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #000000;"&gt;defaultParameters&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(which makes sense, as it presumably needs correct connection to online service for this info.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weirdly, if I use this 'bogus' URL for the routetask init:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Flogistics.arcgis.com%2Farcgis%2Frest%2Fservices%2FWorld%2FRoute%2FGPServer%2FFindRoutes%2FsubmitJob%3Ftoken%3Da_proper_generated_token" rel="nofollow" target="_blank"&gt;https://logistics.arcgis.com/arcgis/rest/services/World/Route/GPServer/FindRoutes/submitJob?token=a_proper_generated_token&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;then it actually gets past '&lt;SPAN style="color: #000000; font-style: italic;"&gt;defaultParameters' - (but fails on the actual service call, silently.)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 14:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391338#M1962</guid>
      <dc:creator>JakobGaardsted</dc:creator>
      <dc:date>2015-09-22T14:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticating OnlineRouteTask qt10.2.3, oauth2.0.. and which URL</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391339#M1963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A thought: I wonder, if the problem is bogus SSL in my Qt - I've installed an openSSL driver, but haven't verified it is robust with this QT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 14:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391339#M1963</guid>
      <dc:creator>JakobGaardsted</dc:creator>
      <dc:date>2015-09-22T14:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticating OnlineRouteTask qt10.2.3, oauth2.0.. and which URL</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391340#M1964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jakob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right that you should be using the following service: &lt;SPAN style="color: #183691; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Froute.arcgis.com%2Farcgis%2Frest%2Fservices%2FWorld%2FRoute%2FNAServer%2FRoute_World" rel="nofollow" target="_blank"&gt;https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a few options with UserCredentials. The first is to determine if you need to use OAuth authentication or if regular http tokens will suffice. If so, you can obtain the username and password from your user, and set those on the user credentials, and then set the route task's credential property to that instance of UserCredentials. This is the simplest option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do need to use OAuth, then we didn't officially support this until 10.2.6. You &lt;EM&gt;might&lt;/EM&gt; be able to get this to work still be manually acquiring the token like you are doing. The referer should refer to the App ID that you get when you register your app on developers.arcgis.com. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 16:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391340#M1964</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2015-09-22T16:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticating OnlineRouteTask qt10.2.3, oauth2.0.. and which URL</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391341#M1965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your informative reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp; The username/password option I don't believe is valid for us - our clients run on 25-seat arcgis-standard deployment licenses, which I set with '&lt;SPAN style="color: #800080;"&gt;ER&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;ArcGISRuntime&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;License&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;setLicense'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;When I get back to our work computers (I'm in Europe), I'll try your 'referer' suggestion (I thought it was a URL field). Cross my fingers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Otherwise, I can guess the option left is 10.2.6..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;It's not that I mind 10.2.6, I just don't like to switch to 10.2.6 a week before releasing to clients,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;which renders all our mouse application code relying on 'graphicsIds()'&amp;nbsp; being synchronous, not asynchronous :-(., and all references turned into pointers :-).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt; I had a rant here, which I've removed again, since it's not of use to anyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;thank you for your assistance!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 19:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391341#M1965</guid>
      <dc:creator>JakobGaardsted</dc:creator>
      <dc:date>2015-09-22T19:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticating OnlineRouteTask qt10.2.3, oauth2.0.. and which URL</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391342#M1966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Solution": I have now gotten it to work (10.2.6..), field report here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the suggestion for 10.2.3, but it doesn't appear it will work.&lt;/P&gt;&lt;P&gt;The remainder here, what I learned about getting it (a demo) to work on 10.2.6:&lt;/P&gt;&lt;P&gt;( - info I wish I could have googled, and which would have been very helpful to myself, over the past month&lt;/P&gt;&lt;P&gt;struggling with "not" getting this to work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3334ca;"&gt;&amp;nbsp; // OACI apparently doesn't have to be long-lived?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3334ca;"&gt;&amp;nbsp; ER::OAuthClientInfo oauth(ttp_ClientID, ttp_secret, ER::OAuthMode::App);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3334ca;"&gt;&amp;nbsp; creds.setOAuthClientInfo(oauth); // (ER::UserCredentials)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3334ca;"&gt;&amp;nbsp; // ER::IdentityManager::setCredential(&amp;amp;creds, actualURL);&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3334ca;"&gt;&amp;nbsp; m_routingTask = new ER::OnlineRouteTask(actualURL, &amp;amp;creds);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3334ca;"&gt;&amp;nbsp; // NB - even though docs say 'const', it has to be NOT const&amp;nbsp; here.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3334ca;"&gt;&amp;nbsp; connect( m_routingTask, SIGNAL(solveTaskComplete(EsriRuntimeQt::RoutingResult*)), this, SLOT(onSolveTaskComplete(EsriRuntimeQt::RoutingResult*))); // const&amp;nbsp; const&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//////////////////////////////////////////////////////////////////////////////////////////////&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;comments/ the lessons learned from this: &lt;/P&gt;&lt;P&gt;1 - (beware that this is for 'app' (not 'user'&amp;nbsp; mode - YMMV if not for app-mode.)&lt;/P&gt;&lt;P&gt;2 - IdentityManager is non-essential, it's a 'convenience' mechanism to isolate authentication aspects out of your app code.&lt;/P&gt;&lt;P&gt;3 - the lifetime of UserCredentials obj. is critical, it has to be longlived: If you use a stack-allocated obj, the app will crash and burn in mysterious ways (ie the OnlineRouteTask expects it to live as long as it does.) However, &lt;SPAN style="color: #303030;"&gt;OAuthClientInfo can be shortlived stack-item. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;4 - 'OAuthClientInfo' handles 'everything' on behalf of UserCredentials (in this specific context..), so no need to set any of the many other properties of UserCredentials (e.g. no 'token', no 'referer').&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;5 - the ER::Graphics items eventually added to your graphics-layer, must be heap-allocated.. If not, you CAN add them to your layer, and you won't get an error, but nothing will appear to work :-(.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;6 - the 'solveTaskComplete' signal, in practice, is different from what the documentation says (doc says 'const', but it only works if you remove const.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not looking forward to porting our entire application from 10.2.3 to 10.2.6 in under a week,&lt;/P&gt;&lt;P&gt;given the different pointer-semantics,&lt;/P&gt;&lt;P&gt;especially given item 5, I expect a mountain of heap-allocation bugs &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Interestingly, on our running 10.2.3 development, I experience about zero heap corruption bugs &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 15:04:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/authenticating-onlineroutetask-qt10-2-3-oauth2-0/m-p/391342#M1966</guid>
      <dc:creator>JakobGaardsted</dc:creator>
      <dc:date>2015-09-23T15:04:58Z</dc:date>
    </item>
  </channel>
</rss>

