<?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: python question about importing &amp;quot;msal&amp;quot; module in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/python-question-about-importing-quot-msal-quot-module/m-p/513852#M1151</link>
    <description>&lt;P&gt;Thanks for the quick reply&lt;/P&gt;
&lt;P&gt;Stupid question where would i run this -&amp;nbsp;&lt;BR /&gt;If i run from a tenant playground do I have to run in every tenant playground, so an image per tenant (i might not understand how this works)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;/docker_image_create msal dependencies=msal&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 16:54:27 GMT</pubDate>
    <dc:creator>JoshBoyd</dc:creator>
    <dc:date>2022-09-02T16:54:27Z</dc:date>
    <item>
      <title>python question about importing "msal" module</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/python-question-about-importing-quot-msal-quot-module/m-p/513848#M1149</link>
      <description>&lt;P&gt;I want to be able to use this module with my automation scripts:&lt;/P&gt;
&lt;P&gt;msal:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/AzureAD/microsoft-authentication-library-for-python" target="_blank"&gt;https://github.com/AzureAD/microsoft-authentication-library-for-python&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;import msal&amp;nbsp;&lt;BR /&gt;by default fails as the module is not installed or available by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How would i manually correct?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 16:29:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/python-question-about-importing-quot-msal-quot-module/m-p/513848#M1149</guid>
      <dc:creator>JoshBoyd</dc:creator>
      <dc:date>2022-09-02T16:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: python question about importing "msal" module</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/python-question-about-importing-quot-msal-quot-module/m-p/513850#M1150</link>
      <description>&lt;P&gt;To use a python module in an automation script/integration the module must be installed in the docker container that the automation script/integration is configured to use. Palo Alto Networks provides many prebuilt containers that are available for use. You can see all of the containers &lt;A href="https://hub.docker.com/u/demisto" target="_self"&gt;here&lt;/A&gt; and you can view the docker files that generate those containers &lt;A href="https://github.com/demisto/dockerfiles/tree/master/docker" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking through the available containers I do not see one with msal installed. This means you would have to use the &lt;A href="https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-9/cortex-xsoar-admin/docker/docker-images-in-demisto/create-a-docker-image-in-demisto" target="_self"&gt;/docker_image_create&lt;/A&gt;&amp;nbsp;command in XSOAR to create a custom container to use for your automation script/integration. You could run something similar to the following command to create a new container with msal available in it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/docker_image_create msal dependencies=msal&lt;/LI-CODE&gt;
&lt;P&gt;After the image is created you can configure the 'Docker Image Name' setting in your automation script/integration to msal:latest.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 16:43:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/python-question-about-importing-quot-msal-quot-module/m-p/513850#M1150</guid>
      <dc:creator>tyler_bailey</dc:creator>
      <dc:date>2022-09-02T16:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: python question about importing "msal" module</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/python-question-about-importing-quot-msal-quot-module/m-p/513852#M1151</link>
      <description>&lt;P&gt;Thanks for the quick reply&lt;/P&gt;
&lt;P&gt;Stupid question where would i run this -&amp;nbsp;&lt;BR /&gt;If i run from a tenant playground do I have to run in every tenant playground, so an image per tenant (i might not understand how this works)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;/docker_image_create msal dependencies=msal&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 16:54:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/python-question-about-importing-quot-msal-quot-module/m-p/513852#M1151</guid>
      <dc:creator>JoshBoyd</dc:creator>
      <dc:date>2022-09-02T16:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: python question about importing "msal" module</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/python-question-about-importing-quot-msal-quot-module/m-p/513854#M1152</link>
      <description>&lt;P&gt;Assuming that you are using docker, I believe the tenants share the docker images that are on the host. So in a MT environment I would think that you would need to run the /docker_image_create command on at least 1 tenant per host, but I have not confirmed this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You configure the "Docker Image Name" in the settings of your automation script/integration.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tyler_bailey_0-1662137602930.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/43652iD4B958CF26805B32/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="tyler_bailey_0-1662137602930.png" alt="tyler_bailey_0-1662137602930.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 16:54:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/python-question-about-importing-quot-msal-quot-module/m-p/513854#M1152</guid>
      <dc:creator>tyler_bailey</dc:creator>
      <dc:date>2022-09-02T16:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: python question about importing "msal" module</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/python-question-about-importing-quot-msal-quot-module/m-p/513857#M1153</link>
      <description>&lt;P&gt;Got it working, thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 17:24:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/python-question-about-importing-quot-msal-quot-module/m-p/513857#M1153</guid>
      <dc:creator>JoshBoyd</dc:creator>
      <dc:date>2022-09-02T17:24:27Z</dc:date>
    </item>
  </channel>
</rss>

