<?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: How should we use Duo-Web-v2.js? in APIs</title>
    <link>https://community.cisco.com/t5/apis/how-should-we-use-duo-web-v2-js/m-p/4881784#M386</link>
    <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Approach &lt;SPAN class="hashtag"&gt;#1&lt;/SPAN&gt;. We don’t expect people to call the hosted js directly. You can watch the repo to know when the SDK gets updated (It’s not something that happens very often).&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 17 Oct 2019 14:57:34 GMT</pubDate>
    <dc:creator>DuoKristina</dc:creator>
    <dc:date>2019-10-17T14:57:34Z</dc:date>
    <item>
      <title>How should we use Duo-Web-v2.js?</title>
      <link>https://community.cisco.com/t5/apis/how-should-we-use-duo-web-v2-js/m-p/4881783#M385</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;I’m developing Duo functionality for my Python/Django app, and I need to make use of &lt;CODE&gt;Duo-Web-v2.js&lt;/CODE&gt;, but I’m not sure what the best way to use it would be. I can see two possible solutions.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Copy Duo-Web-v2.js out of the duo_web python package and put it into my Django project’s static files folder, so I can load it on the authentication page like a regular django static file, e.g. &lt;CODE&gt;&amp;lt;script src="{% static 'duo/js/Duo-Web-v2.min.js' %}"&amp;gt;&amp;lt;/script&amp;gt;&lt;/CODE&gt;
&lt;/LI&gt;
&lt;LI&gt;Use &lt;CODE&gt;&amp;lt;script src="https://■■■■■■■■■■■■■■■■■■■/frame/hosted/Duo-Web-v2.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/CODE&gt; (It looks like the forum software is censoring the domain for some reason… It’s &lt;CODE&gt;api.duosecurity. com&lt;/CODE&gt;.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The disadvantage of &lt;SPAN class="hashtag"&gt;#1&lt;/SPAN&gt; is that if Duo-Web-v2.js gets updated with a new version of the duo_web project, I have to manually search out that update and copy it into my django app again.&lt;/P&gt;
&lt;P&gt;The disadvantage of &lt;SPAN class="hashtag"&gt;#2&lt;/SPAN&gt; is that I don’t know if Duo guarantees that that URL will remain valid in perpetuity, or if it will get updated and no longer be backward compatible with the version of duo_web that my app has installed.&lt;/P&gt;
&lt;P&gt;Is there a third option I don’t know about? Or perhaps I’m worrying overmuch about &lt;SPAN class="hashtag"&gt;#2&lt;/SPAN&gt;?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Oct 2019 23:46:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/how-should-we-use-duo-web-v2-js/m-p/4881783#M385</guid>
      <dc:creator>coredumperror</dc:creator>
      <dc:date>2019-10-10T23:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: How should we use Duo-Web-v2.js?</title>
      <link>https://community.cisco.com/t5/apis/how-should-we-use-duo-web-v2-js/m-p/4881784#M386</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Approach &lt;SPAN class="hashtag"&gt;#1&lt;/SPAN&gt;. We don’t expect people to call the hosted js directly. You can watch the repo to know when the SDK gets updated (It’s not something that happens very often).&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Oct 2019 14:57:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/how-should-we-use-duo-web-v2-js/m-p/4881784#M386</guid>
      <dc:creator>DuoKristina</dc:creator>
      <dc:date>2019-10-17T14:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: How should we use Duo-Web-v2.js?</title>
      <link>https://community.cisco.com/t5/apis/how-should-we-use-duo-web-v2-js/m-p/4881785#M387</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;OK, thanks for letting me know. I’ll watch the repo.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Oct 2019 20:48:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/how-should-we-use-duo-web-v2-js/m-p/4881785#M387</guid>
      <dc:creator>coredumperror</dc:creator>
      <dc:date>2019-10-17T20:48:41Z</dc:date>
    </item>
  </channel>
</rss>

