<?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 How do I allow ArcGIS Online log-in when user name contains &amp;quot;_&amp;quot;? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-allow-arcgis-online-log-in-when-user-name/m-p/377101#M4449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a C# and WPF application (ArcGIS Runtime 100.0) setup with ArcGIS Online log-in. &amp;nbsp;I know it works, my credentials work fine. &amp;nbsp;Digging around my orginization (I'm admin) I realized the other user accounts have "_" in their user names. &amp;nbsp;On a hunch, I created a new account, ensuring the user name did not contain "_"...bingo. &amp;nbsp;I can log into my portal from my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // Create a token credential using the provided username and password&lt;BR /&gt; ArcGISTokenCredential userCredentials = await AuthenticationManager.Current.GenerateCredentialAsync&lt;BR /&gt; (new Uri(requestInfo.ServiceUri.GetLeftPart(UriPartial.Path)),&lt;BR /&gt; _userName,&lt;BR /&gt; _password,&lt;BR /&gt; requestInfo.GenerateTokenOptions) as ArcGISTokenCredential;&lt;/P&gt;&lt;P&gt;_eventAggregator.GetEvent&amp;lt;ArcGISUserChangedEvent&amp;gt;().Publish(&lt;BR /&gt; new Image.Infrastructure.Events.Args.ArcGISUserChangedArgs { Token = userCredentials });&lt;/P&gt;&lt;P&gt;// Set the result on the task completion source&lt;BR /&gt; _loginTaskCompletionSource.TrySetResult(userCredentials);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Apr 2017 23:17:18 GMT</pubDate>
    <dc:creator>CharlieMatherne1</dc:creator>
    <dc:date>2017-04-30T23:17:18Z</dc:date>
    <item>
      <title>How do I allow ArcGIS Online log-in when user name contains "_"?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-allow-arcgis-online-log-in-when-user-name/m-p/377101#M4449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a C# and WPF application (ArcGIS Runtime 100.0) setup with ArcGIS Online log-in. &amp;nbsp;I know it works, my credentials work fine. &amp;nbsp;Digging around my orginization (I'm admin) I realized the other user accounts have "_" in their user names. &amp;nbsp;On a hunch, I created a new account, ensuring the user name did not contain "_"...bingo. &amp;nbsp;I can log into my portal from my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // Create a token credential using the provided username and password&lt;BR /&gt; ArcGISTokenCredential userCredentials = await AuthenticationManager.Current.GenerateCredentialAsync&lt;BR /&gt; (new Uri(requestInfo.ServiceUri.GetLeftPart(UriPartial.Path)),&lt;BR /&gt; _userName,&lt;BR /&gt; _password,&lt;BR /&gt; requestInfo.GenerateTokenOptions) as ArcGISTokenCredential;&lt;/P&gt;&lt;P&gt;_eventAggregator.GetEvent&amp;lt;ArcGISUserChangedEvent&amp;gt;().Publish(&lt;BR /&gt; new Image.Infrastructure.Events.Args.ArcGISUserChangedArgs { Token = userCredentials });&lt;/P&gt;&lt;P&gt;// Set the result on the task completion source&lt;BR /&gt; _loginTaskCompletionSource.TrySetResult(userCredentials);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Apr 2017 23:17:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-allow-arcgis-online-log-in-when-user-name/m-p/377101#M4449</guid>
      <dc:creator>CharlieMatherne1</dc:creator>
      <dc:date>2017-04-30T23:17:18Z</dc:date>
    </item>
  </channel>
</rss>

