<?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 Wrong login page in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-login-page/m-p/1236764#M79516</link>
    <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a javascript application which tries to reach a map located in our ArcGIS Online portal. The portal is configured to use log in with Azure AD, but when I use the following code and tries to load the Portal Item as in the example below:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;            identityManager.registerServers([{
                server: arcGisConfiguration.portalUrl,
                adminTokenServiceUrl: "",
                tokenServiceUrl: arcGisConfiguration.tokenEndpoint
            }]),
            esriConfig.portalUrl = arcGisConfiguration.portalUrl;
            var oAuthInfo = new OAuthInfo({
                appId: arcGisConfiguration.clientID,
                portalUrl: arcGisConfiguration.portalUrl + "/sharing",
                popup: !1
            });
            identityManager.registerOAuthInfos([oAuthInfo]);
            let webmapId = arcGisConfiguration.relationship.webmapId, authenticationMode, activeRelationShip = arcGisConfiguration.relationship, esriPortal = new Portal({
                url: esriConfig.portalUrl
            });
            var item;
            new PortalItem({
                id: webmapId,
                portal: esriPortal
            }).load().then((function(item) {&lt;/LI-CODE&gt;&lt;P&gt;I am directed to this Sign-In page instead of our Azure AD login:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EivindG_1-1669897132275.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/57346i2569CF4FBFE85497/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EivindG_1-1669897132275.png" alt="EivindG_1-1669897132275.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I enter the portalURL in the browser instead, the Azure AD login page shows up. Does anyone see what I have to change to also make the application work with Azure AD?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 13:01:10 GMT</pubDate>
    <dc:creator>EivindG</dc:creator>
    <dc:date>2022-12-01T13:01:10Z</dc:date>
    <item>
      <title>Wrong login page</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-login-page/m-p/1236764#M79516</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a javascript application which tries to reach a map located in our ArcGIS Online portal. The portal is configured to use log in with Azure AD, but when I use the following code and tries to load the Portal Item as in the example below:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;            identityManager.registerServers([{
                server: arcGisConfiguration.portalUrl,
                adminTokenServiceUrl: "",
                tokenServiceUrl: arcGisConfiguration.tokenEndpoint
            }]),
            esriConfig.portalUrl = arcGisConfiguration.portalUrl;
            var oAuthInfo = new OAuthInfo({
                appId: arcGisConfiguration.clientID,
                portalUrl: arcGisConfiguration.portalUrl + "/sharing",
                popup: !1
            });
            identityManager.registerOAuthInfos([oAuthInfo]);
            let webmapId = arcGisConfiguration.relationship.webmapId, authenticationMode, activeRelationShip = arcGisConfiguration.relationship, esriPortal = new Portal({
                url: esriConfig.portalUrl
            });
            var item;
            new PortalItem({
                id: webmapId,
                portal: esriPortal
            }).load().then((function(item) {&lt;/LI-CODE&gt;&lt;P&gt;I am directed to this Sign-In page instead of our Azure AD login:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EivindG_1-1669897132275.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/57346i2569CF4FBFE85497/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EivindG_1-1669897132275.png" alt="EivindG_1-1669897132275.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I enter the portalURL in the browser instead, the Azure AD login page shows up. Does anyone see what I have to change to also make the application work with Azure AD?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 13:01:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-login-page/m-p/1236764#M79516</guid>
      <dc:creator>EivindG</dc:creator>
      <dc:date>2022-12-01T13:01:10Z</dc:date>
    </item>
  </channel>
</rss>

