<?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: ArcGIS JS Portal Login in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1350119#M82784</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/427535"&gt;@GaryB&lt;/a&gt;, I tested this method, but the user still needs to log in once.&amp;nbsp; Is there any example, using the token method, the user does not need to log in once ?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2023 03:37:58 GMT</pubDate>
    <dc:creator>Wade</dc:creator>
    <dc:date>2023-11-16T03:37:58Z</dc:date>
    <item>
      <title>ArcGIS JS Portal Login</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1148268#M76487</link>
      <description>&lt;P&gt;When I set the portal, the layer is private in ArcGIS Enterprise, the login screen appears, how to log in it in the application?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require([
    "esri/config"
], function (
    esriConfig
) {
    esriConfig.portalUrl = "https://MyApp/portal/";
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 10:27:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1148268#M76487</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2022-02-26T10:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS Portal Login</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1148291#M76489</link>
      <description>&lt;P&gt;Hi Wade, this link may help with what you are trying to do: &lt;A href="https://developers.arcgis.com/javascript/latest/arcgis-organization-portals/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/arcgis-organization-portals/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 23:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1148291#M76489</guid>
      <dc:creator>GaryB</dc:creator>
      <dc:date>2022-02-26T23:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS Portal Login</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1148331#M76491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;GaryB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The document describes the ArcGIS Enterprise part, not very clear, is there a practical example?&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 10:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1148331#M76491</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2022-02-27T10:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS Portal Login</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1148341#M76492</link>
      <description>&lt;P&gt;yes, I recall struggling with this a bit, try this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;let info = new OAuthInfo({appId: 'xxxxxxxxxxxxxxxx', portalUrl: 'https://my.portal.url/portal', popup: false})

esriId.registerOAuthInfos([info])

esriId.checkSignInStatus(info.portalUrl + '/sharing').then(function () {

    let portal = new Portal({url: 'https://my.portal.url/portal'})

    portal.authMode = 'immediate'

    portal.load().then(
        function () {
            console.log(portal.user.username + ' is now connected to the portal')
            // call my afterSuccessfulLogin function
        },
        function (error) {
            console.log("couldn't successfully load the portal")
        }
    )
})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 14:45:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1148341#M76492</guid>
      <dc:creator>GaryB</dc:creator>
      <dc:date>2022-02-27T14:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS Portal Login</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1148901#M76507</link>
      <description>&lt;P&gt;ArcGIS Enterprise can also create appId?&lt;/P&gt;&lt;P&gt;The current way is to use ArcGIS Server generate token for verification.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 02:15:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1148901#M76507</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2022-03-01T02:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS Portal Login</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1151149#M76583</link>
      <description>&lt;P&gt;Hello GaryB,&amp;nbsp;I tested this method, but the user still needs to log in once. Is there a solution to build the identity information into the program without requiring the user to log in again? Thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 07:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1151149#M76583</guid>
      <dc:creator>Lerman</dc:creator>
      <dc:date>2022-03-07T07:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS Portal Login</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1350119#M82784</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/427535"&gt;@GaryB&lt;/a&gt;, I tested this method, but the user still needs to log in once.&amp;nbsp; Is there any example, using the token method, the user does not need to log in once ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 03:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-portal-login/m-p/1350119#M82784</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2023-11-16T03:37:58Z</dc:date>
    </item>
  </channel>
</rss>

