<?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.GetCredentialAsync does not throw Exception  in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395854#M4691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennifer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a different method (see code below). This is the signature which shows the (system?) challenge dialog which prompts the user for user/pwd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, to clarify, the issue occurs before the user enters any information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Idea: &lt;/STRONG&gt;I think that the Esri method is not throwing an exception in situation where url is not accessible (either that, or I'm missing something). Would be nice if an exception were thrown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; Anyone else seeing issue where a _deployed_ UWP app cannot access this url when url is internal? Works fine in browser on deployment machine. Also works fine in UWP app on development machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;A href="https://{0}/arcgis/rest/info?f=json"&gt;https://{0}/arcgis/rest/info?f=json&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are still looking for root cause here. Any ideas appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GenerateTokenOptions tokenOptions = new GenerateTokenOptions()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TokenAuthenticationType = TokenAuthenticationType.ArcGISToken,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CredentialRequestInfo requestInfo = new CredentialRequestInfo()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthenticationType = AuthenticationType.Token,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GenerateTokenOptions = tokenOptions,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceUri = _syncUri&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Credential credential = await AuthenticationManager.Current.GetCredentialAsync(requestInfo, false);&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Cory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2017 15:41:12 GMT</pubDate>
    <dc:creator>deleted-user-Ohz6rwd1kavx</dc:creator>
    <dc:date>2017-08-02T15:41:12Z</dc:date>
    <item>
      <title>AuthenticationManager.GetCredentialAsync does not throw Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395848#M4685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using this method to generated a Credential before calling GeodatabaseSyncTask.CreateAsync().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 22px;"&gt;AuthenticationManager.GetCredentialAsync(CredentialRequestInfo credentialRequestInfo, bool retry)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way this works is that the default challenge dialog appears prompting user for userid/pwd. This works fine if the url is accessible, but in situation where the url is not accessible (e.g.&amp;nbsp;internal url and device is outside the firewall), the method does not throw an exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way using this method (or similar from the SDK) to know that the url isn't accessible, e.g. via a thrown Exception?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, all the user sees is a message in the default challenge dialog: "Previous error: An error occurred while sending the request". In VS if I enable "Compile with .NET Native tool chain" I can get a little bit more information, but I am looking for a clean solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any guidance appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Cory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 16:44:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395848#M4685</guid>
      <dc:creator>deleted-user-Ohz6rwd1kavx</dc:creator>
      <dc:date>2017-07-14T16:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: AuthenticationManager.GetCredentialAsync does not throw Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395849#M4686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually send a WebRequest to the Url and see if I get a response to confirm connectivity prior to calling the method when this is a concern.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:42:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395849#M4686</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2017-07-14T17:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: AuthenticationManager.GetCredentialAsync does not throw Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395850#M4687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I added this based on your suggestion. Working so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ArcGIS Runtime SDK sends a Get using this url when I call Authentication.GetCredentialAsync, so that's the url template I ended up using for my sniff test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;{0}/arcgis/rest/info?f=json"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Cory&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 20:25:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395850#M4687</guid>
      <dc:creator>deleted-user-Ohz6rwd1kavx</dc:creator>
      <dc:date>2017-07-17T20:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: AuthenticationManager.GetCredentialAsync does not throw Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395851#M4688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To clarify, the SDK sends the above request as the challenge dialog appears. This is before user has entered their credentials or clicked Ok on the dialog. After user clicks OK -- logically --,&amp;nbsp; a send request is sent to the tokens url (&lt;A href="https://{0}/arcgis/tokens/"&gt;https://{0}/arcgis/tokens/&lt;/A&gt;). In my fail scenario, both of these requests are failing, but I wasn't able to catch an exception from either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 20:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395851#M4688</guid>
      <dc:creator>deleted-user-Ohz6rwd1kavx</dc:creator>
      <dc:date>2017-07-17T20:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: AuthenticationManager.GetCredentialAsync does not throw Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395852#M4689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;One thing I find less than optimal is the way that await/async handles exceptions in regards&amp;nbsp;to sending them back to the calling methods. &amp;nbsp;Perhaps that is just my lack of understanding on how they are meant to work. &amp;nbsp;But I think&amp;nbsp;this might be a general issue&amp;nbsp;because it seems to me that APIs I use don't always throw a meaningful (or any) exception back to the caller. &amp;nbsp;Just my observation. &amp;nbsp;I'll be honest, I have gotten to think the simplicity of async/await often can results in worse code.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 17:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395852#M4689</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2017-07-18T17:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: AuthenticationManager.GetCredentialAsync does not throw Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395853#M4690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll need to await GenerateCredential if you want to programmatically create the credential and get an exception thrown for bad username/password. The following code should give you an ArcGISWebException `You are not authorized to access this information`.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; credential &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; AuthenticationManager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Current&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GenerateCredentialAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Uri&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWildfire_secure_ac%2FFeatureServer" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire_secure_ac/FeatureServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"user1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"bad_password"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// u/p for this service is user1/user1;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;catch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Exception ex&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Show&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ex&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Message&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ex&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetType&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:07:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395853#M4690</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T18:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: AuthenticationManager.GetCredentialAsync does not throw Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395854#M4691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennifer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a different method (see code below). This is the signature which shows the (system?) challenge dialog which prompts the user for user/pwd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, to clarify, the issue occurs before the user enters any information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Idea: &lt;/STRONG&gt;I think that the Esri method is not throwing an exception in situation where url is not accessible (either that, or I'm missing something). Would be nice if an exception were thrown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; Anyone else seeing issue where a _deployed_ UWP app cannot access this url when url is internal? Works fine in browser on deployment machine. Also works fine in UWP app on development machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;A href="https://{0}/arcgis/rest/info?f=json"&gt;https://{0}/arcgis/rest/info?f=json&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are still looking for root cause here. Any ideas appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GenerateTokenOptions tokenOptions = new GenerateTokenOptions()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TokenAuthenticationType = TokenAuthenticationType.ArcGISToken,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CredentialRequestInfo requestInfo = new CredentialRequestInfo()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthenticationType = AuthenticationType.Token,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GenerateTokenOptions = tokenOptions,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceUri = _syncUri&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Credential credential = await AuthenticationManager.Current.GetCredentialAsync(requestInfo, false);&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Cory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 15:41:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-getcredentialasync-does-not/m-p/395854#M4691</guid>
      <dc:creator>deleted-user-Ohz6rwd1kavx</dc:creator>
      <dc:date>2017-08-02T15:41:12Z</dc:date>
    </item>
  </channel>
</rss>

