<?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: Authenticationmanager does not refresh the access token in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-does-not-refresh-the-access/m-p/1269378#M11751</link>
    <description>&lt;P&gt;According to my experience with OAuth2, choosing the OAuthAuthorizationCode should refresh the access token silently/automatically (that is what I need). - Only with OAuthAuthorizationImplicit would mean that the user must authenticate again.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 11:48:39 GMT</pubDate>
    <dc:creator>GhefarMansour</dc:creator>
    <dc:date>2023-03-20T11:48:39Z</dc:date>
    <item>
      <title>Authenticationmanager does not refresh the access token</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-does-not-refresh-the-access/m-p/1269374#M11750</link>
      <description>&lt;P&gt;I use the TokenAuthenticationType "Code" and expected a "silent token refresh", but does not worked for me.&lt;BR /&gt;The URL is a "ArcGIS Portal" where i already registered my app.&amp;nbsp;&lt;BR /&gt;Hier is how I generate the tokens:&lt;/P&gt;&lt;P&gt;public static async Task&amp;lt;Credential&amp;gt; PromptCredentialAsync(CredentialRequestInfo info)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;var credential = await AuthenticationManager.Current.GenerateCredentialAsync(&lt;BR /&gt;info.ServiceUri,&lt;BR /&gt;new GenerateTokenOptions()&lt;BR /&gt;{&lt;BR /&gt;TokenAuthenticationType = TokenAuthenticationType.OAuthAuthorizationCode,&lt;BR /&gt;TokenExpirationInterval = TimeSpan.FromMinutes(10) // Just as an example - the default is 30 minutes&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After teh token hast been expired, the user has to authenticate again (user/password), what I want to be avoided. Any one knows abou that?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-does-not-refresh-the-access/m-p/1269374#M11750</guid>
      <dc:creator>GhefarMansour</dc:creator>
      <dc:date>2023-03-20T11:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticationmanager does not refresh the access token</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-does-not-refresh-the-access/m-p/1269378#M11751</link>
      <description>&lt;P&gt;According to my experience with OAuth2, choosing the OAuthAuthorizationCode should refresh the access token silently/automatically (that is what I need). - Only with OAuthAuthorizationImplicit would mean that the user must authenticate again.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:48:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-does-not-refresh-the-access/m-p/1269378#M11751</guid>
      <dc:creator>GhefarMansour</dc:creator>
      <dc:date>2023-03-20T11:48:39Z</dc:date>
    </item>
  </channel>
</rss>

