<?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: Open file from private github repository (authentication needed) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/777304#M95860</link>
    <description>&lt;P&gt;You can do 2 factor authentication (really OAuth2) with JMP JSL.&lt;BR /&gt;Check out the example in the scripting index under&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get Authorization Header&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It basically centers around&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New OAuth2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's also an example in the community:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/JMP-Scripts/Integrating-Google-Drive-with-JMP-using-HTTP-Request/ta-p/545688" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/JMP-Scripts/Integrating-Google-Drive-with-JMP-using-HTTP-Request/ta-p/545688&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I haven't done one for GitHub, but I have for Google/Azure.&lt;/P&gt;
&lt;P&gt;The server is in complete control, so if your registration has MFA (or not), JMP just follows redirects.&lt;/P&gt;
&lt;P&gt;The Azure one may be disabled for your site. Mine is disabled here due to admin settings.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2024 20:54:12 GMT</pubDate>
    <dc:creator>bryan_boone</dc:creator>
    <dc:date>2024-07-29T20:54:12Z</dc:date>
    <item>
      <title>Open file from private github repository (authentication needed)</title>
      <link>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/774801#M95685</link>
      <description>&lt;P&gt;I would like to open a jmp table stored on github in a private repository (that my user account has access to). So how do I web open a file that needs authentication?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 14:33:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/774801#M95685</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2024-07-23T14:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Open file from private github repository (authentication needed)</title>
      <link>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/774812#M95686</link>
      <description>&lt;P&gt;I think you might be able to store the session using&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;web("https://github.com/", JMP Window)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and logging in. Then you might be able to just use Open on the URL.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open("https://community.jmp.com/kvoqx44227/attachments/kvoqx44227/sample-data/118/1/How%20Domestic%20Is%20My%20Car.jmp")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think you can also do it interactively (not sure if this is recorded)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1721745945054.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66436i8AFA10EB65A4C59C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1721745945054.png" alt="jthi_0-1721745945054.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other option is to look into github's documentation (&lt;STRIKE&gt;maybe &lt;/STRIKE&gt;&lt;A href="https://docs.github.com/en/apps" target="_blank" rel="noopener"&gt;&lt;STRIKE&gt;https://docs.github.com/en/apps&lt;/STRIKE&gt;&lt;/A&gt;) and utilize New HTTP Request as needed (I would go this route)&lt;/P&gt;
&lt;P&gt;Ediit: Most likely better documentation&amp;nbsp;&lt;A href="https://docs.github.com/en/rest?apiVersion=2022-11-28" target="_blank"&gt;GitHub REST API documentation - GitHub Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 04:48:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/774812#M95686</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-24T04:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Open file from private github repository (authentication needed)</title>
      <link>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/774865#M95692</link>
      <description>&lt;P&gt;I wrote and example and stored it on GitHub a while back.&lt;BR /&gt;&lt;A href="https://github.com/bryanboone-jmp/HTTP-Request-with-githib/blob/main/github.jsl" target="_blank"&gt;https://github.com/bryanboone-jmp/HTTP-Request-with-githib/blob/main/github.jsl&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This uses Basic authorization.&lt;BR /&gt;I referenced the original location I used while creating the JSL&lt;BR /&gt;&lt;A href="https://gist.github.com/joyrexus/85bf6b02979d8a7b0308" target="_blank"&gt;https://gist.github.com/joyrexus/85bf6b02979d8a7b0308&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The JSL itself references:&lt;BR /&gt;user = "bryanboone-jmp";&lt;BR /&gt;repository = "HTTP-Request-with-githib";&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;which is my github location itself, so you'll want to change it.&lt;/P&gt;
&lt;P&gt;It just does some basic stuff, so feel free to reach out if needed.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 18:09:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/774865#M95692</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2024-07-23T18:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Open file from private github repository (authentication needed)</title>
      <link>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/775100#M95715</link>
      <description>&lt;P&gt;Thanks Bryan but this one fails. I think most likely because I have 2FA turned on. So I need to investigate how to build a similar thing with the API's.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 13:48:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/775100#M95715</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2024-07-24T13:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Open file from private github repository (authentication needed)</title>
      <link>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/775101#M95716</link>
      <description>&lt;P&gt;Thanks Jarmo, It does allow me to log-in and store the session but I do not seem to be able to open a data table directly. It might be the link to the file (I tried raw and web path). The one you shared is from the JMP community so it is a little different :)&lt;/img&gt; I'll keep trying and report back if I figure it out.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 13:50:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/775101#M95716</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2024-07-24T13:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Open file from private github repository (authentication needed)</title>
      <link>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/775195#M95727</link>
      <description>&lt;P&gt;I think Open() might not be able to utilize the stored session.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 19:28:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/775195#M95727</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-24T19:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Open file from private github repository (authentication needed)</title>
      <link>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/777304#M95860</link>
      <description>&lt;P&gt;You can do 2 factor authentication (really OAuth2) with JMP JSL.&lt;BR /&gt;Check out the example in the scripting index under&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get Authorization Header&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It basically centers around&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New OAuth2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's also an example in the community:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/JMP-Scripts/Integrating-Google-Drive-with-JMP-using-HTTP-Request/ta-p/545688" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/JMP-Scripts/Integrating-Google-Drive-with-JMP-using-HTTP-Request/ta-p/545688&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I haven't done one for GitHub, but I have for Google/Azure.&lt;/P&gt;
&lt;P&gt;The server is in complete control, so if your registration has MFA (or not), JMP just follows redirects.&lt;/P&gt;
&lt;P&gt;The Azure one may be disabled for your site. Mine is disabled here due to admin settings.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 20:54:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-file-from-private-github-repository-authentication-needed/m-p/777304#M95860</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2024-07-29T20:54:12Z</dc:date>
    </item>
  </channel>
</rss>

