Jump to content

2-Factor Authentication (2FA)


Recommended Posts

bandit8623
Posted (edited)
2 hours ago, raudraido said:

ha is open source

And you can add many open source code to a closed source. My point is it's available to be added.

Edited by bandit8623
many not any
Posted
53 minutes ago, bandit8623 said:

And you can add any open source code to a closed source

Not in most cases.  That would cause the closed source item to become a "derivative product" and immediately make it open source.

bandit8623
Posted (edited)
30 minutes ago, ebr said:

Not in most cases.  That would cause the closed source item to become a "derivative product" and immediately make it open source.

Depends on the wording. So have you actually looked at totp?  this proves to me you guys havent even started doing anything for this yet.

https://share.google/aimode/lTsjQgzCy0nfXxQz6

Edited by bandit8623
Posted
39 minutes ago, bandit8623 said:

Depends on the wording. So have you actually looked at totp?  this proves to me you guys havent even started doing anything for this yet.

https://share.google/aimode/lTsjQgzCy0nfXxQz6

My comment wasn't about TOTP.  It was about your statement that open source code could be used in a closed-source product.  There is also a distinction between using "code" and utilizing an open source library, etc.

I agree that the OSS issue is not really related to the implementation of 2FA.  My comment was just to clarify a general statement.  As such, probably superfluous.  Sorry.

Painkiller88
Posted

Has anyone ever tried this Plugin:

https://github.com/Graxo/emby-sso

This plugin uses authentik to add MFA and SSO in front of emby, and should work for most devices.

bandit8623
Posted
7 hours ago, ebr said:

My comment wasn't about TOTP.  It was about your statement that open source code could be used in a closed-source product.  There is also a distinction between using "code" and utilizing an open source library, etc.

I agree that the OSS issue is not really related to the implementation of 2FA.  My comment was just to clarify a general statement.  As such, probably superfluous.  Sorry.

all good

  • 2 weeks later...
Painkiller88
Posted (edited)

hell, after all those years i implemented MFA myself for emby.
- no reverse proxy
- no Authentik

or anything else, just a plugin, with user management, enforcement etc. still working on it but works on all devices so far.

- TOTP only for now (format: Password:TOTP)
- Secured against TOTP replay attacks
- native App support
- self setup using QR code
- MFA Enforcement ( i can enforce MFA for a specific user, this user gets an setup wizard next time he signs in) (works on native clients, not only browser)

Planned:
- Push MFA (like Steam or Microsoft with an already signed in device) is what i will try in the next few weeks
so i will try to do it with a simple Android App, havent done this for years so need to find my way back in developing APKs, haven't ever tried iOS Apps so, won't target this for now. 

And maybe a few other things i plan, but first i need to check and enhance the security for this.

Testet browser, android phone, android on shield, ios etc.

i really don't get it why emby couldn't do it on their own, they have the source open, i needed to feck around for hours understanding their authentication classes etc.

Not fully done yet, but it is a per user mfa, i now add a user Setting to set it up (QR), and an admin page to manage and reset it for users.

Also set it up as no MFA request for internal network but always from external.

Next is to finish it, then maybe doing an android App for Push mfa like Facebook or Steam is using.

When a user is already logged into a device, you can accept mfa push from this device.

i still have to do a lot of work.... but TOTP is working so i am really happy about that and it works with the native apps :)

image.png.22531baebb29e5537cab72a17ab07ec6.png

image.thumb.png.58710bd12949e0f6ed3fbb772a99ba26.png

image.png.b46dc4689b4d5baac9278790e55c41ab.png

Edited by Painkiller88
  • Like 1
WBoweIII
Posted

@Painkiller88

That is terrific - I can't wait!!!

Painkiller88
Posted
8 minutes ago, athinaok said:

How to get it?

actually you can't, as i wrote i am developing it, i just started yesterday so i need to test a lot and also implement more security, you don't wanna lock out yourself ;)

  • Thanks 1
Painkiller88
Posted

TOTP almost completely done, a few tests for security is what i will do next but for now it is working.

Also, first steps on PUSH MFA are done.

Did a quick and dirty Companion APK (Android App) to approve or deny login requests.
So you can use TOTP which is also the fallback if you don't have the Android App, or you can use the App with Push MFAimage.png.d873a1761ac6df9085f30acff7acbeb0.png



i know it's not a beauty but as i said just a quick and dirty, but it does what it should.

Will continue with more Tests and Security improvements.

BUT it is possible in 2 days with a closed source :) 

So i am happy for now

  • Thanks 2
adrianwi
Posted

How embarrassing @Emby

Almost 8 years in, and a forum member is trying to fix a security vulnerability that the core team is clearly choosing to ignore.

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...