• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

[nodebb-plugin-2factor] Two-Factor Authentication

Scheduled Pinned Locked Moved NodeBB Plugins
23 Posts 11 Posters 6.4k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #3

    Good to hear it @revunix ๐Ÿ˜„

    I hope to add support for reset keys and ACP deactivation, as currently, if you lose your device, you won't be able to bypass ๐Ÿ˜ฆ

    drewD 1 Reply Last reply
    2
  • drewD Offline
    drewD Offline
    drew
    replied to julian on last edited by
    #4

    @julian I recently had my phone smashed by a drunk friend (I could just make out the numbers on a flickering screen) and discovered how terrible the "reset code" or "add code to another device" situation is with a new phone on sooo many websites where I had 2FA, even if you can get in with your current one.

    KowlinK 1 Reply Last reply
    0
  • KowlinK Offline
    KowlinK Offline
    Robert Translator
    replied to drew on last edited by
    #5

    @drew Indeed, I don't know how many support tickets I will need to make for all the sites where I use 2 factor auth, 3 Google accounts, Steam, Cloudflare and much more...

    Anyways 2FA looks nice.

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by julian
    #6

    Published an update. (Changelog in OP)

    @drew @kowlin At least now the administrator can reset TFA keys, although getting in touch with the admin is another matter altogether ๐Ÿ˜†

    1 Reply Last reply
    0
  • L Offline
    L Offline
    Nicholas "LB" Braden
    wrote on last edited by
    #7

    Are backup codes supported now btw? I see a closed GitHub issue for them, which suggests they are.

    julianJ 1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    replied to Nicholas "LB" Braden on last edited by julian
    #8

    @LB Yep, they are, although they are generated only when you start the 2FA setup process, so you will want to disable 2FA, trash your record, and re-generate one. The backup codes will be displayed a single time for you to record.

    1 Reply Last reply
    0
  • C Offline
    C Offline
    cookieman768
    wrote on last edited by
    #9

    When I scan this with Authy or Google Authenticator it says "QR code is invalid" no matter how many times I create a new one. Is there a fix?

    A 1 Reply Last reply
    1
  • A Offline
    A Offline
    Alex Bro Anime Lovers
    replied to cookieman768 on last edited by
    #10

    @cookieman768 The same situation(((

    1 Reply Last reply
    0
  • YosimotoY Offline
    YosimotoY Offline
    Yosimoto Anime Lovers
    wrote on last edited by Yosimoto
    #11

    Plug-ins no longer work with the version ยซ1.7.5ยป.

    julianJ 1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    replied to Yosimoto on last edited by
    #12

    @ilya Can you elaborate on what doesn't work? Saying "no longer work" doesn't help narrow down any problems.

    YosimotoY 1 Reply Last reply
    0
  • YosimotoY Offline
    YosimotoY Offline
    Yosimoto Anime Lovers
    replied to julian on last edited by Yosimoto
    #13

    @julian The problem was solved with FreeOTP Authenticator (Android).

    phenomlabP 1 Reply Last reply
    1
  • phenomlabP Offline
    phenomlabP Offline
    phenomlab
    replied to Yosimoto on last edited by
    #14

    @ilya This plugin no longer works with 1.17. Error below

    2021-04-23T13:18:12.371Z [4567/469428] - error: uncaughtException: Failed to lookup view "admin/dashboard" in views directory "/home/phenomlab/nodebb/build/public/templates"
    Error: Failed to lookup view "admin/dashboard" in views directory "/home/phenomlab/nodebb/build/public/templates"
        at Function.render (/home/phenomlab/nodebb/node_modules/express/lib/application.js:580:17)
        at ServerResponse.render (/home/phenomlab/nodebb/node_modules/express/lib/response.js:1012:7)
        at /home/phenomlab/nodebb/src/middleware/render.js:89:11
        at new Promise (<anonymous>)
        at renderContent (/home/phenomlab/nodebb/src/middleware/render.js:88:10)
        at ServerResponse.renderOverride [as render] (/home/phenomlab/nodebb/src/middleware/render.js:64:14)
        at processTicksAndRejections (node:internal/process/task_queues:96:5) {"error":{"view":{"defaultEngine":"tpl","ext":".tpl","name":"admin/dashboard","root":"/home/phenomlab/nodebb/build/public/templates"}},"stack":"Error: Failed to lookup view \"admin/dashboard\" in views directory \"/home/phenomlab/nodebb/build/public/templates\"\n    at Function.render (/home/phenomlab/nodebb/node_modules/express/lib/application.js:580:17)\n    at ServerResponse.render (/home/phenomlab/nodebb/node_modules/express/lib/response.js:1012:7)\n    at /home/phenomlab/nodebb/src/middleware/render.js:89:11\n    at new Promise (<anonymous>)\n    at renderContent (/home/phenomlab/nodebb/src/middleware/render.js:88:10)\n    at ServerResponse.renderOverride [as render] (/home/phenomlab/nodebb/src/middleware/render.js:64:14)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","exception":true,"date":"Fri Apr 23 2021 14:18:12 GMT+0100 (British Summer Time)","process":{"pid":469428,"uid":1000,"gid":1000,"cwd":"/home/phenomlab/nodebb","execPath":"/usr/bin/node","version":"v16.0.0","argv":["/usr/bin/node","/home/phenomlab/nodebb/app.js"],"memoryUsage":{"rss":294481920,"heapTotal":195198976,"heapUsed":164432120,"external":74292726,"arrayBuffers":70953438}},"os":{"loadavg":[1.23,1.17,0.8],"uptime":340350.31},"trace":[{"column":17,"file":"/home/phenomlab/nodebb/node_modules/express/lib/application.js","function":"Function.render","line":580,"method":"render","native":false},{"column":7,"file":"/home/phenomlab/nodebb/node_modules/express/lib/response.js","function":"ServerResponse.render","line":1012,"method":"render","native":false},{"column":11,"file":"/home/phenomlab/nodebb/src/middleware/render.js","function":null,"line":89,"method":null,"native":false},{"column":null,"file":null,"function":"new Promise","line":null,"method":null,"native":false},{"column":10,"file":"/home/phenomlab/nodebb/src/middleware/render.js","function":"renderContent","line":88,"method":null,"native":false},{"column":14,"file":"/home/phenomlab/nodebb/src/middleware/render.js","function":"ServerResponse.renderOverride [as render]","line":64,"method":"renderOverride [as render]","native":false},{"column":5,"file":"node:internal/process/task_queues","function":"processTicksAndRejections","line":96,"method":null,"native":false}]}
    2021-04-23T13:18:12.371Z [4567/469428] - error: Error: Failed to lookup view "admin/dashboard" in views directory "/home/phenomlab/nodebb/build/public/templates"
        at Function.render (/home/phenomlab/nodebb/node_modules/express/lib/application.js:580:17)
        at ServerResponse.render (/home/phenomlab/nodebb/node_modules/express/lib/response.js:1012:7)
        at /home/phenomlab/nodebb/src/middleware/render.js:89:11
        at new Promise (<anonymous>)
        at renderContent (/home/phenomlab/nodebb/src/middleware/render.js:88:10)
        at ServerResponse.renderOverride [as render] (/home/phenomlab/nodebb/src/middleware/render.js:64:14)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
    
    
    phenomlabP 1 Reply Last reply
    0
  • phenomlabP Offline
    phenomlabP Offline
    phenomlab
    replied to phenomlab on last edited by
    #15

    I've just seen an update for this plugin. Is it compatible now ? ๐Ÿค”

    1 Reply Last reply
    1
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #16

    v5.0.0 of the 2factor authentication plugin has been published. It now allows for concurrent second factors, so you can have both a hardware key and an authenticator app in use at the same time.

    When challenged, you can use either option to verify your identity.

    1 Reply Last reply
    4
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #17

    v7.4.0 of this plugin now notifies you in the event that your account was accessed, but the second factor challenge was not passed.

    This provides a much-needed notification for the user that their password has been compromised and is in need of changing.

    NodeBB (@[email protected])

    Attached: 1 image The Two-Factor Authentication plugin that comes bundled with #NodeBB was just updated to v7.4.0. It now notifies you if your account was accessed, but the second factor challenge was not passed. If you see this notification, and it wasn't you, you just might want to change your now-compromised password! Oft forgotten, this feature provides much needed positive reinforcement that, yeah, #2FA works! #appsec #security #2factor

    favicon

    Fosstodon (fosstodon.org)

    B 1 Reply Last reply
    4
  • B Offline
    B Offline
    brazzerstop
    replied to julian on last edited by
    #18

    ๐Ÿ‘๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

    @julian this is amazing feature!!! Thank you! ๐Ÿฃ

    1 Reply Last reply
    0
  • RazielKanosR Offline
    RazielKanosR Offline
    RazielKanos
    wrote last edited by
    #19

    when i try to add a hardware key i instantly get the message "hardware key registration abborted" and in the logs i found this:
    2023-11-20T06:03:39.301Z [4567/995] - info: [plugin/2factor] Denying socket access for uid 2 pending second factor.

    Any idea how I can fix this?

    1 Reply Last reply
    1
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote last edited by
    #20

    Hmm, that actually sounds like a bug. Can you let me know your NodeBB version and 2factor plugin version?

    I'll try to take a look tomorrow

    1 Reply Last reply
    0
  • RazielKanosR Offline
    RazielKanosR Offline
    RazielKanos
    wrote last edited by
    #21

    2-factor is: 7.4.0
    Board is: v3.5.1.

    1 Reply Last reply
    0
  • RazielKanosR Offline
    RazielKanosR Offline
    RazielKanos
    wrote last edited by
    #22

    I also noticed that the 2fa isn't working for me too.
    I generate the first code to test the application, that works, but when i want to log in later, it doesn't recognize the code, and i have to use a backup code

    1 Reply Last reply
    0

Copyright ยฉ 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development