*** mbozem has joined #idempiere | 01:03 | |
*** mbozem2 has quit IRC | 01:04 | |
*** a42niem has joined #idempiere | 05:47 | |
Not-bfd4 | [IDEMPIERE] pshepetko created IDEMPIERE-3479 2FA for iDempiere ERP Business Suite based Google Authenticator | 05:48 |
---|---|---|
Not-bfd4 | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-3479 | 05:48 |
Not-bfd4 | [IDEMPIERE] pshepetko updated IDEMPIERE-3479 Attachment set to "TOTP.java" | 05:48 |
Not-bfd4 | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-3479 | 05:48 |
Not-bfd4 | [IDEMPIERE] pshepetko updated IDEMPIERE-3479 Attachment set to "LoginPanel.java" | 06:06 |
Not-bfd4 | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-3479 | 06:06 |
*** brent has quit IRC | 07:42 | |
*** brent has joined #idempiere | 07:55 | |
*** CarlosRuiz has joined #idempiere | 10:08 | |
Not-bfd4 | [IDEMPIERE] pshepetko updated IDEMPIERE-3479 Attachment set to "2FAiD.png" | 10:12 |
Not-bfd4 | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-3479 | 10:12 |
*** CarlosRuiz has quit IRC | 10:26 | |
*** nmicoud has joined #idempiere | 12:54 | |
*** nmicoud has quit IRC | 13:14 | |
*** jdpaniagua has quit IRC | 15:12 | |
*** jdpaniagua has joined #idempiere | 15:30 | |
Not-bfd4 | [IDEMPIERE] hieplq updated IDEMPIERE-3479 | 17:16 |
Not-bfd4 | [IDEMPIERE] 2. Add three fields to AD_User_Preference table but i don't see sql migrate, any missing? and how to user init "Google Authenticator"? | 17:16 |
Not-bfd4 | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-3479 | 17:16 |
Not-bfd4 | [IDEMPIERE] pshepetko updated IDEMPIERE-3479 | 17:45 |
Not-bfd4 | [IDEMPIERE] Hi Hiep! I will prepare migration scripts and demo video for this feature soon. User init GA in function validateLogin() and check 2FA code: -------------------------------- //PS check is 2FA #IDEMPIERE-3479 if (txt2FA.isVisible()) { if (!txt2FA.getValue().toString().equals(checkCode( DB.getSQLValueString(null, "SELECT up.Code2FA FROM AD_UserPreference up " + "LEFT JOIN AD_USER u ON | 17:45 |
Not-bfd4 | u.AD_User_ID=up.AD_User_ID " + "WHERE Code2FA IS NOT NULL AND u.Name='"+txtUserId.getValue().toString()+"';") ))) { Clients.clearBusy(); throw new WrongValueException("2FA Code is wrong!"); } } //PS #IDEMPIERE-3479 ----------------------------- What do you think about new plug-in 2FA or better if we add this feature to core? | 17:45 |
Not-bfd4 | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-3479 | 17:45 |
Not-bfd4 | [IDEMPIERE] pshepetko updated IDEMPIERE-3479 Attachment set to "ad_userpreference ADD COLUMN.sql" | 17:47 |
Not-bfd4 | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-3479 | 17:47 |
Not-bfd4 | [IDEMPIERE] pshepetko updated IDEMPIERE-3479 | 17:48 |
Not-bfd4 | [IDEMPIERE] I added the migration scripts | 17:48 |
Not-bfd4 | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-3479 | 17:48 |
Not-bfd4 | [IDEMPIERE] pshepetko updated IDEMPIERE-3479 | 20:11 |
Not-bfd4 | [IDEMPIERE] I added the script for fields create | 20:11 |
Not-bfd4 | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-3479 | 20:11 |
*** Bobbydatesta has joined #idempiere | 20:44 | |
Not-bfd4 | [IDEMPIERE] pshepetko updated IDEMPIERE-3479 Attachment set to "2FA_Callauot.PNG" | 21:19 |
Not-bfd4 | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-3479 | 21:19 |
Not-bfd4 | [IDEMPIERE] pshepetko updated IDEMPIERE-3479 | 21:22 |
Not-bfd4 | [IDEMPIERE] Search Key&Name= beanshell:2FA Event Type = Callout Rule Type = JSR 223 Scripting APIs Scrip= import org.compiere.util.Env; import org.compiere.model.MUser; if (A_Tab.getValue("is2FA")) { String randomSecretKey= org.adempiere.webui.panel.LoginPanel.getRandomSecretKey(); MUser user = new MUser (Env.getCtx(), Env.getAD_User_ID(Env.getCtx()), null); A_Tab.setValue("Code2FA",randomSecretKey); | 21:22 |
Not-bfd4 | A_Tab.setValue("ImageURL","https://www.google.com/chart?chs=200x200&chld=M%%7C0&cht=qr&chl=otpauth://totp/"+user.getName()+"@iDempiereERP?secret="+randomSecretKey) ; } else { A_Tab.setValue("Code2FA",""); A_Tab.setValue("ImageURL","") ; } result=""; | 21:22 |
Not-bfd4 | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-3479 | 21:22 |
Not-bfd4 | [IDEMPIERE] pshepetko updated IDEMPIERE-3479 | 21:22 |
Not-bfd4 | [IDEMPIERE] Search Key&Name= beanshell:2FA Event Type = Callout Rule Type = JSR 223 Scripting APIs Script= import org.compiere.util.Env; import org.compiere.model.MUser; if (A_Tab.getValue("is2FA")) { String randomSecretKey= org.adempiere.webui.panel.LoginPanel.getRandomSecretKey(); MUser user = new MUser (Env.getCtx(), Env.getAD_User_ID(Env.getCtx()), null); A_Tab.setValue("Code2FA",randomSecretKey); | 21:22 |
Not-bfd4 | A_Tab.setValue("ImageURL","https://www.google.com/chart?chs=200x200&chld=M%%7C0&cht=qr&chl=otpauth://totp/"+user.getName()+"@iDempiereERP?secret="+randomSecretKey) ; } else { A_Tab.setValue("Code2FA",""); A_Tab.setValue("ImageURL","") ; } result=""; | 21:22 |
Not-bfd4 | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-3479 | 21:22 |
*** a42niem has quit IRC | 21:58 | |
*** silphium has joined #idempiere | 22:09 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!