<?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: Authentication in Mobile or Wpf App directly with a refresh token in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/authentication-in-mobile-or-wpf-app-directly-with/m-p/1230794#M11472</link>
    <description>&lt;P&gt;A bit of looking through examples and reading the docs implies that&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;OAuthTokenCredential oauth2Token = new OAuthTokenCredential(new Uri(url), access_token);
AuthenticationManager.Current.AddCredential(oauth2Token);&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Would prevent the OAuth2 windows from popping up in the above case if I had a valid access_token for it. Is this correct?&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 07:31:20 GMT</pubDate>
    <dc:creator>SquarecodeDeveloper</dc:creator>
    <dc:date>2022-11-11T07:31:20Z</dc:date>
    <item>
      <title>Authentication in Mobile or Wpf App directly with a refresh token</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authentication-in-mobile-or-wpf-app-directly-with/m-p/1230344#M11467</link>
      <description>&lt;P&gt;I am working off this example code to build my app&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/main/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Security/OAuth/OAuth.xaml.cs" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/main/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Security/OAuth/OAuth.xaml.cs&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/main/src/WPF/ArcGISRuntime.WPF.Viewer/Helpers/ArcGISLoginPrompt.cs" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/main/src/WPF/ArcGISRuntime.WPF.Viewer/Helpers/ArcGISLoginPrompt.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This code pops up an arcgis online login screen to authenticate the user. Instead I want to supply it with a RefreshToken that I got elsewhere (specifically I have a web site which also authenticates to Arcgis online's OAuth login system. My app is paired with the website using my own mechanism to link the two and share data between them. My goal is to not require the user to keep logging into Arcgis whenever they view a map (which this example seems to do) and minimise the number of logins full stop.&lt;BR /&gt;&lt;BR /&gt;This answer seem to describe a scheme that would work in the Javascript library, but I cannot find the registerToken method in C#&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-questions/how-to-authenticate-using-only-a-token-or-a-custom/m-p/271592" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-api-for-javascript-questions/how-to-authenticate-using-only-a-token-or-a-custom/m-p/271592&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 09:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authentication-in-mobile-or-wpf-app-directly-with/m-p/1230344#M11467</guid>
      <dc:creator>SquarecodeDeveloper</dc:creator>
      <dc:date>2022-11-10T09:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication in Mobile or Wpf App directly with a refresh token</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authentication-in-mobile-or-wpf-app-directly-with/m-p/1230794#M11472</link>
      <description>&lt;P&gt;A bit of looking through examples and reading the docs implies that&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;OAuthTokenCredential oauth2Token = new OAuthTokenCredential(new Uri(url), access_token);
AuthenticationManager.Current.AddCredential(oauth2Token);&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Would prevent the OAuth2 windows from popping up in the above case if I had a valid access_token for it. Is this correct?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 07:31:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authentication-in-mobile-or-wpf-app-directly-with/m-p/1230794#M11472</guid>
      <dc:creator>SquarecodeDeveloper</dc:creator>
      <dc:date>2022-11-11T07:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication in Mobile or Wpf App directly with a refresh token</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authentication-in-mobile-or-wpf-app-directly-with/m-p/1231546#M11476</link>
      <description>&lt;P&gt;I've asked our internal security guild for some guidance, but my initial concern with this approach would be that it may go against the OAuth 2 spec, perhaps conflicting here:&amp;nbsp;&lt;A href="https://www.ietf.org/archive/id/draft-ietf-oauth-security-topics-21.html#name-token-replay-prevention" target="_blank"&gt;OAuth 2.0 Security Best Current Practice (ietf.org)&lt;/A&gt;&amp;nbsp;?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 01:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authentication-in-mobile-or-wpf-app-directly-with/m-p/1231546#M11476</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2022-11-15T01:56:51Z</dc:date>
    </item>
  </channel>
</rss>

