<?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: Problems with Qml Portal Login Authentication in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/problems-with-qml-portal-login-authentication/m-p/880217#M3606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Keith,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you looked at our sample our implementation for Portal login (OAuth2) implementation in one of our templates?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For examples in MapViewer template, you can look at&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;MapViewer/MapViewer/MapViewerApp.qml around line 360-ish under the comment //--PORTAL---&lt;/LI&gt;&lt;LI&gt;MapViewer/MapViewer/views/OAuth2View.qml&amp;nbsp;file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to follow how to handle such scenarios when someone fails to login.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2018 20:38:00 GMT</pubDate>
    <dc:creator>ErwinSoekianto</dc:creator>
    <dc:date>2018-07-27T20:38:00Z</dc:date>
    <item>
      <title>Problems with Qml Portal Login Authentication</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/problems-with-qml-portal-login-authentication/m-p/880216#M3605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to prompt the user to log in with their ArcGIS Online account when my app starts up. I get their login information and load the Portal, which causes an authenitcationChallenge signal to be called by an AuthenticationManager. So, I connect to the signal and pass it the username and password, and it works fine if they enter the correct information. The problem is when they enter in invalid login information, it fails to load the Portal, and when the user puts in the correct login information, I do a retryLoad() on the Portal, and it fails because the authenticationChallenge doesn't get called. Also, it gives me the error that too many invalid logins have been attempted, but I am sure the issue is that I am not sble to pass the Portal the correct username and password because the authenticationChellenge doesn't ever come up after the first load of the Portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I could get the authenticationChallenge to come back after the first Portal load attempt? Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 14:40:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/problems-with-qml-portal-login-authentication/m-p/880216#M3605</guid>
      <dc:creator>KeithLarson1</dc:creator>
      <dc:date>2018-07-27T14:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Qml Portal Login Authentication</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/problems-with-qml-portal-login-authentication/m-p/880217#M3606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Keith,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you looked at our sample our implementation for Portal login (OAuth2) implementation in one of our templates?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For examples in MapViewer template, you can look at&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;MapViewer/MapViewer/MapViewerApp.qml around line 360-ish under the comment //--PORTAL---&lt;/LI&gt;&lt;LI&gt;MapViewer/MapViewer/views/OAuth2View.qml&amp;nbsp;file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to follow how to handle such scenarios when someone fails to login.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 20:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/problems-with-qml-portal-login-authentication/m-p/880217#M3606</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-07-27T20:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Qml Portal Login Authentication</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/problems-with-qml-portal-login-authentication/m-p/880218#M3607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this will help,&amp;nbsp; you can try to cancel authentication challenge&amp;nbsp;before opening a new OAuth login page&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #66a334;"&gt;AuthenticationView&lt;/SPAN&gt;&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ff6aad;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9acfd6;"&gt;authenticationView&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ff6aad;"&gt;authenticationManager&lt;/SPAN&gt;:&lt;SPAN style="color: #bec0c2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #66a334;"&gt;AuthenticationManager&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #bec0c2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #9acfd6;"&gt;authenticationView&lt;/SPAN&gt;.authChallenge.cancel();

We also have two samples related to Portal log in.&amp;nbsp; 
You can search for "OAuth + Biometric Authentication" and "Portal User Info" in the 
AppStudio Desktop New App dialog 





&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/problems-with-qml-portal-login-authentication/m-p/880218#M3607</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T17:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Qml Portal Login Authentication</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/problems-with-qml-portal-login-authentication/m-p/880219#M3608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks. I wasn't using the AuthenticationManager before because I hadn't imported&amp;nbsp;Esri.ArcGISRuntime.Toolkit.Dialogs. I was able to get it to work with the AuthenticationView though, so all is good. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 21:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/problems-with-qml-portal-login-authentication/m-p/880219#M3608</guid>
      <dc:creator>KeithLarson1</dc:creator>
      <dc:date>2018-07-27T21:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Qml Portal Login Authentication</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/problems-with-qml-portal-login-authentication/m-p/880220#M3609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. I got it working with the AuthenticationView, so all is good now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 21:52:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/problems-with-qml-portal-login-authentication/m-p/880220#M3609</guid>
      <dc:creator>KeithLarson1</dc:creator>
      <dc:date>2018-07-27T21:52:14Z</dc:date>
    </item>
  </channel>
</rss>

