<?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 Authentication question in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/authentication-question/m-p/336694#M3961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a valid User's credentials, I can use them to connect successfully to the ESRI.com ArcGis Online Portal website but when I use them in my application, I get an exception stating "Invalid username/password". I've been trying with other accounts and it all works well. I'm not sure why this user specifically cannot connect. The exception is raised when generating credentials for that user like this :&amp;nbsp;&lt;/P&gt;&lt;OL class="" start="1" style="color: #5c5c5c; background-color: #ffffff; border: none; font-size: 12px; margin: 0px 0px 1px 45px !important;"&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f6f6f6; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; font-weight: inherit; font-size: 12px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: 0px; font-weight: inherit; font-size: 9pt !important;"&gt;var&amp;nbsp;cred&amp;nbsp;=&amp;nbsp;await&amp;nbsp;Esri.ArcGISRuntime.Security.IdentityManager.Current.GenerateCredentialAsync(&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; font-weight: inherit; font-size: 12px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: 0px; font-weight: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PORTAL_SERVER_URL,&amp;nbsp;UserTextBox.Text,&amp;nbsp;PasswordTextBox.Password);&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;The only difference I see is that this user is part of a Group with a User role.&lt;BR /&gt;PS: I'm using a valid ClientId to connect and it really works well with 4-5 different accounts.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;What can cause the SDK IdentityManager to detect a bad username/password combination when the creds are 100% correct ? Is there another reason why the SDK would send us that error message ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Ali&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Mar 2017 13:03:35 GMT</pubDate>
    <dc:creator>AliBensaid</dc:creator>
    <dc:date>2017-03-23T13:03:35Z</dc:date>
    <item>
      <title>Authentication question</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authentication-question/m-p/336694#M3961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a valid User's credentials, I can use them to connect successfully to the ESRI.com ArcGis Online Portal website but when I use them in my application, I get an exception stating "Invalid username/password". I've been trying with other accounts and it all works well. I'm not sure why this user specifically cannot connect. The exception is raised when generating credentials for that user like this :&amp;nbsp;&lt;/P&gt;&lt;OL class="" start="1" style="color: #5c5c5c; background-color: #ffffff; border: none; font-size: 12px; margin: 0px 0px 1px 45px !important;"&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f6f6f6; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; font-weight: inherit; font-size: 12px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: 0px; font-weight: inherit; font-size: 9pt !important;"&gt;var&amp;nbsp;cred&amp;nbsp;=&amp;nbsp;await&amp;nbsp;Esri.ArcGISRuntime.Security.IdentityManager.Current.GenerateCredentialAsync(&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; font-weight: inherit; font-size: 12px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: 0px; font-weight: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PORTAL_SERVER_URL,&amp;nbsp;UserTextBox.Text,&amp;nbsp;PasswordTextBox.Password);&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;The only difference I see is that this user is part of a Group with a User role.&lt;BR /&gt;PS: I'm using a valid ClientId to connect and it really works well with 4-5 different accounts.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;What can cause the SDK IdentityManager to detect a bad username/password combination when the creds are 100% correct ? Is there another reason why the SDK would send us that error message ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Ali&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 13:03:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authentication-question/m-p/336694#M3961</guid>
      <dc:creator>AliBensaid</dc:creator>
      <dc:date>2017-03-23T13:03:35Z</dc:date>
    </item>
  </channel>
</rss>

