<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — FrontAccounting with Duo Security 2 Factor Authentication (2fa)]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9462&amp;type=atom" />
	<updated>2021-10-16T05:03:00Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9462</id>
		<entry>
			<title type="html"><![CDATA[Re: FrontAccounting with Duo Security 2 Factor Authentication (2fa)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40112#p40112" />
			<content type="html"><![CDATA[<p>@ardyan, Still you didn&#039;t understand what i mean in my comment.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2021-10-16T05:03:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40112#p40112</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FrontAccounting with Duo Security 2 Factor Authentication (2fa)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40109#p40109" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>geesyscare wrote:</cite><blockquote><p>Hope, Duo is not an open source application and it is chargeable beyond 10 users. instead can we could try with <br /><a href="https://github.com/nnolan-open/open2fa">open2fa</a>,<br /><a href="https://github.com/linotp">linotp</a>,<br /><a href="https://github.com/multiOTP">multiotp</a><br />and many more.</p><p>Can we have your opinion @ardyan please?</p></blockquote></div><p>Hi @geesyscare and @kvvaradha<br />please read my new post at <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=40108">https://frontaccounting.com/punbb/viewt … ?pid=40108</a></p>]]></content>
			<author>
				<name><![CDATA[ardyan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46182</uri>
			</author>
			<updated>2021-10-15T07:35:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40109#p40109</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FrontAccounting with Duo Security 2 Factor Authentication (2fa)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40107#p40107" />
			<content type="html"><![CDATA[<p>Hi @kvvaradha,<br />i can&#039;t figuring out how to make this without customize&nbsp; the core.<br />can you give me a clue, how to cut session between after login and before going to dashboard page just from module?</p>]]></content>
			<author>
				<name><![CDATA[ardyan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46182</uri>
			</author>
			<updated>2021-10-15T06:13:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40107#p40107</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FrontAccounting with Duo Security 2 Factor Authentication (2fa)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40087#p40087" />
			<content type="html"><![CDATA[<p>@ardyan,&nbsp; you don&#039;t need to customize the core to use it. Try hooks. You can do it from module itself. And make the duo security as separate module.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2021-10-13T11:04:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40087#p40087</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FrontAccounting with Duo Security 2 Factor Authentication (2fa)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40085#p40085" />
			<content type="html"><![CDATA[<p>Hi,<br />Yes @geesyscare, because our office using DUO for additional login purposes. But sure, the other kind of 2FA could be deploy to frontaccounting. In the near future I will do my accounting lab and try the opensourcce for 2FA.</p><p>I&#039;ve tried using Google 2FA, and it worked, but I want to try to make a module so that everyone can easily use it</p>]]></content>
			<author>
				<name><![CDATA[ardyan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46182</uri>
			</author>
			<updated>2021-10-13T06:29:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40085#p40085</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FrontAccounting with Duo Security 2 Factor Authentication (2fa)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40045#p40045" />
			<content type="html"><![CDATA[<p>Hope, Duo is not an open source application and it is chargeable beyond 10 users. instead can we could try with <br /><a href="https://github.com/nnolan-open/open2fa">open2fa</a>,<br /><a href="https://github.com/linotp">linotp</a>,<br /><a href="https://github.com/multiOTP">multiotp</a><br />and many more.</p><p>Can we have your opinion @ardyan please?</p>]]></content>
			<author>
				<name><![CDATA[geesyscare]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42046</uri>
			</author>
			<updated>2021-09-29T13:49:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40045#p40045</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[FrontAccounting with Duo Security 2 Factor Authentication (2fa)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39977#p39977" />
			<content type="html"><![CDATA[<p>download duo_php lib here <strong><a href="https://github.com/duosecurity/duo_php">https://github.com/duosecurity/duo_php</a></strong><br />extract to FrontAccounting folder.</p><p>open your /fa/path/folder/index.php<br />and replace with this code:<br /></p><div class="codebox"><pre><code>&lt;?php
$path_to_root=&quot;.&quot;;
if (!file_exists($path_to_root.&#039;/config_db.php&#039;))
  header(&quot;Location: &quot;.$path_to_root.&quot;/install/index.php&quot;);

$page_security = &#039;SA_OPEN&#039;;
ini_set(&#039;xdebug.auto_trace&#039;,1);
include_once(&quot;includes/session.inc&quot;);

add_access_extensions();
$app = &amp;$_SESSION[&quot;App&quot;];
if (isset($_GET[&#039;application&#039;]))
  $app-&gt;selected_application = $_GET[&#039;application&#039;];

if(isset($_SESSION[&quot;wa_current_user&quot;]-&gt;loginname) &amp;&amp; $_SESSION[&quot;wa_current_user&quot;]-&gt;loginname != &quot;&quot; &amp;&amp; !isset($_POST[&#039;sig_response&#039;])){
  define(&#039;AKEY&#039;, &quot;THISISMYSUPERSECRETCUSTOMERKEYDONOTSHARE&quot;);
  define(&#039;IKEY&#039;, &quot;IKEY&quot;);
  define(&#039;SKEY&#039;, &quot;SKEY&quot;);
  define(&#039;HOST&#039;, &quot;api-xxxxxxxx.duosecurity.com&quot;);
  
  require_once &#039;duo_php/src/Web.php&#039;;
  $sig_request = Duo\Web::signRequest(IKEY, SKEY, AKEY, $_SESSION[&quot;wa_current_user&quot;]-&gt;loginname);
?&gt;
  &lt;style&gt;
  iframe#duo_iframe { margin-top: 100px; width: 450px;height: 400px; border-style: none; }
  &lt;/style&gt;
  &lt;script type=&quot;text/javascript&quot; src=&quot;duo_php/js/Duo-Web-v2.js&quot;&gt;&lt;/script&gt;
  &lt;center&gt;&lt;iframe id=&quot;duo_iframe&quot; data-host=&quot;&lt;?php echo HOST; ?&gt;&quot; data-sig-request=&quot;&lt;?php echo $sig_request; ?&gt;&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;?php
} else if(isset($_POST[&#039;sig_response&#039;])){
  if (!isset($_SESSION[&quot;App&quot;])) {
    $_SESSION[&quot;App&quot;] = new front_accounting();
    $_SESSION[&quot;App&quot;]-&gt;init();
  }
  
  $app-&gt;display();
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ardyan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46182</uri>
			</author>
			<updated>2021-09-04T06:21:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39977#p39977</id>
		</entry>
</feed>
