<?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 4 SAML auth in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-saml-auth/m-p/677195#M63156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/327767"&gt;Victor Tey&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;When you add&amp;nbsp; your&amp;nbsp;&lt;SPAN data-ogsb="rgb(255, 255, 255)" data-ogsc="rgb(61, 61, 61)" style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;machine uri to the redirect_uri under registered info for the application, did you include the full path?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;&lt;SPAN data-ogsb="rgb(255, 255, 255)" data-ogsc="rgb(61, 61, 61)" style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;&lt;SPAN data-ogsb="rgb(255, 255, 255)" data-ogsc="rgb(61, 61, 61)" style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;e.g&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A data-auth="NotApplicable" data-ogsc="" href="https://domain.com/xxx/xxx/xxx.html" rel="noopener noreferrer" style="border: 0px;" target="_blank"&gt;https://domain.com/xxx/xxx/xxx.html&lt;/A&gt;&amp;nbsp;instead of just https:domain.com&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;&lt;SPAN data-ogsb="rgb(255, 255, 255)" data-ogsc="rgb(61, 61, 61)" style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="border: 0px; font-size: 12pt;"&gt;&lt;SPAN data-ogsb="rgb(255, 255, 255)" data-ogsc="rgb(61, 61, 61)" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="border: 0px; font-size: 12pt;"&gt;&lt;/DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;Derrick&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2020 11:41:15 GMT</pubDate>
    <dc:creator>DerrickWong</dc:creator>
    <dc:date>2020-05-06T11:41:15Z</dc:date>
    <item>
      <title>ArcGIS JS 4 SAML auth</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-saml-auth/m-p/677194#M63155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have been following the&amp;nbsp;sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/identity-oauth-basic/live/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/identity-oauth-basic/live/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Access ArcGIS Online items using OAuthentication - 4.15&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i kept getting a invalid redirect_uri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done the following&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add item -&amp;gt; application -&amp;gt; application&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Register info&lt;/LI&gt;&lt;LI&gt;Add my machine uri to the redirect_uri under registered info&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I have share this app to my organisation&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can someone please advise what have i done wrong?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;var info = new OAuthInfo({
                // Swap this ID out with registered application ID
                appId: "c13v2Nuys97mUArm",
                // Uncomment the next line and update if using your own portal
                //portalUrl: "",
                // Uncomment the next line to prevent the user's signed in state from being shared with other apps on the same domain with the same authNamespace value.
                authNamespace: "portal_oauth_inline",
                popup: true
            });

            

            IdentityManager.registerOAuthInfos([info]);


IdentityManager.getCredential(info.portalUrl + "/sharing")
            .then(function(){
                const map = new Map({
                    basemap: "hybrid",
                    layers: [layers]
                });
                const view = new MapView({
                    container: "viewDiv",
                    map: map,
                    center: [116, -32],
                    zoom: 10,
                    popup: {
                        autoOpenEnabled: true
                    }
                });
 //do whatever else


            &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:33:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-saml-auth/m-p/677194#M63155</guid>
      <dc:creator>VictorTey</dc:creator>
      <dc:date>2021-12-12T04:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS 4 SAML auth</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-saml-auth/m-p/677195#M63156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/327767"&gt;Victor Tey&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;When you add&amp;nbsp; your&amp;nbsp;&lt;SPAN data-ogsb="rgb(255, 255, 255)" data-ogsc="rgb(61, 61, 61)" style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;machine uri to the redirect_uri under registered info for the application, did you include the full path?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;&lt;SPAN data-ogsb="rgb(255, 255, 255)" data-ogsc="rgb(61, 61, 61)" style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;&lt;SPAN data-ogsb="rgb(255, 255, 255)" data-ogsc="rgb(61, 61, 61)" style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;e.g&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A data-auth="NotApplicable" data-ogsc="" href="https://domain.com/xxx/xxx/xxx.html" rel="noopener noreferrer" style="border: 0px;" target="_blank"&gt;https://domain.com/xxx/xxx/xxx.html&lt;/A&gt;&amp;nbsp;instead of just https:domain.com&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;&lt;SPAN data-ogsb="rgb(255, 255, 255)" data-ogsc="rgb(61, 61, 61)" style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="border: 0px; font-size: 12pt;"&gt;&lt;SPAN data-ogsb="rgb(255, 255, 255)" data-ogsc="rgb(61, 61, 61)" style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="border: 0px; font-size: 12pt;"&gt;&lt;/DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;&lt;/DIV&gt;&lt;DIV data-ogsc="rgb(0, 0, 0)" style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12pt;"&gt;Derrick&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2020 11:41:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-saml-auth/m-p/677195#M63156</guid>
      <dc:creator>DerrickWong</dc:creator>
      <dc:date>2020-05-06T11:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS 4 SAML auth</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-saml-auth/m-p/677196#M63157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Spot on. Thank you &lt;A href="https://community.esri.com/migrated-users/71714"&gt;Derrick Wong&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 03:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-saml-auth/m-p/677196#M63157</guid>
      <dc:creator>VictorTey</dc:creator>
      <dc:date>2020-05-07T03:07:34Z</dc:date>
    </item>
  </channel>
</rss>

