<?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: Possible timeout issue with credentials using Token Auth sample in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/possible-timeout-issue-with-credentials-using/m-p/1063103#M4184</link>
    <description>&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;This is how I initially set it up but didn't seem to work. Also I have been told by my organisation that we don't use tokens anymore so don't have a clue how to now approach this issue.&lt;/P&gt;&lt;P&gt;Any direction or guidance would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 29 May 2021 04:47:46 GMT</pubDate>
    <dc:creator>EricAtkinson1</dc:creator>
    <dc:date>2021-05-29T04:47:46Z</dc:date>
    <item>
      <title>Possible timeout issue with credentials using Token Auth sample</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/possible-timeout-issue-with-credentials-using/m-p/1061665#M4174</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;I've been on here awhile lately so just wanted to thank everyone for their help.&lt;/P&gt;&lt;P&gt;I am nearly at the end of finishing my concept and as it is apart of an organisation we are using 365 as an authenticator. I have used the Token Auth sample to login to the app that uses a webmap. It logs in without an issue but after 60mins it seems to timeout and gives me an error from the Arcgis rest service (403) which hosts some of the layers I am using.&lt;/P&gt;&lt;P&gt;Has anyone seen this issue before? Below is my Portal code... I have been playing around with the refreshtoken properties but had little to no change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;             id: portal
             url: "Hidden from forum"
             credential: Credential {
                 oAuthClientInfo: OAuthClientInfo {
                    oAuthMode: Enums.OAuthModeUser
                     clientId: "Hidden from forum"
                     clientSecret:"Hidden from forum"
                     redirectUri: "Hidden from forum"
                     refreshTokenExchangeInterval: 55
                     refreshTokenExpirationInterval: -1


                 }
             }

             Component.onCompleted: {load();
                }


         }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ive also used my webmap on fieldmaps to see if it would throw the same error but it continues to work with no issue.&lt;/P&gt;&lt;P&gt;I'm a novice to all of this so any help or guidance would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 07:29:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/possible-timeout-issue-with-credentials-using/m-p/1061665#M4174</guid>
      <dc:creator>EricAtkinson1</dc:creator>
      <dc:date>2021-05-26T07:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Possible timeout issue with credentials using Token Auth sample</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/possible-timeout-issue-with-credentials-using/m-p/1063018#M4181</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;When "refreshTokenExpirationInterval" is set to -1, the token is considered to be permanent and is never refreshed. "refreshTokenExchangeInterval" is ignored in this case and that can cause invalid access due to expired token.&lt;/P&gt;&lt;P&gt;Try to use a long expiration interval:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;refreshTokenExchangeInterval: 55
refreshTokenExpirationInterval: 129600 // 90 days&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 18:38:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/possible-timeout-issue-with-credentials-using/m-p/1063018#M4181</guid>
      <dc:creator>GuillaumeBelz</dc:creator>
      <dc:date>2021-05-28T18:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Possible timeout issue with credentials using Token Auth sample</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/possible-timeout-issue-with-credentials-using/m-p/1063103#M4184</link>
      <description>&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;This is how I initially set it up but didn't seem to work. Also I have been told by my organisation that we don't use tokens anymore so don't have a clue how to now approach this issue.&lt;/P&gt;&lt;P&gt;Any direction or guidance would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 04:47:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/possible-timeout-issue-with-credentials-using/m-p/1063103#M4184</guid>
      <dc:creator>EricAtkinson1</dc:creator>
      <dc:date>2021-05-29T04:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Possible timeout issue with credentials using Token Auth sample</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/possible-timeout-issue-with-credentials-using/m-p/1063149#M4185</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/139551"&gt;@GuillaumeBelz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I think I have narrowed it down, its the Client Certificate that is causing the issue. I have found a property that I think will fix my issue (credentialCacheEnabled ). The issue I have now is trying to insert it in AuthenticationManager. This is what I have tried but comes up with an error of "element is not creatable (AuthenticationManager)". I am running 100.10&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AuthenticationView {
                anchors.fill: parent
               AuthenticationManager {
                   credentialCacheEnabled: true
               }
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 11:04:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/possible-timeout-issue-with-credentials-using/m-p/1063149#M4185</guid>
      <dc:creator>EricAtkinson1</dc:creator>
      <dc:date>2021-05-30T11:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Possible timeout issue with credentials using Token Auth sample</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/possible-timeout-issue-with-credentials-using/m-p/1063712#M4192</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;AuthenticationManager is a singleton, you can't create this object. You can use it directly:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Component.onCompleted: {
    AuthenticationManager.credentialCacheEnabled = true;
    load();
}&lt;/LI-CODE&gt;&lt;P&gt;But credential cache is enabled by default.&lt;/P&gt;&lt;P&gt;I'm not sure to understand why you have this error. Can you try without&amp;nbsp;refreshTokenExchangeInterval and&amp;nbsp;refreshTokenExpirationInterval?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 17:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/possible-timeout-issue-with-credentials-using/m-p/1063712#M4192</guid>
      <dc:creator>GuillaumeBelz</dc:creator>
      <dc:date>2021-06-01T17:21:37Z</dc:date>
    </item>
  </channel>
</rss>

