-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2FA support #232
Comments
This sounds about right. Like said in the linked issue, I think that adding support for external auth providers should be the simplest solution (in comparison to natively implementing this). |
Hi, I'm quite new to Gotify but I've used a lot of Authentik lately. Is there news on the subject ? I would love to be able to use Authentik to secure Gotify. |
RaphMad, i have a question. Did you managed to get Gotify working with authelia 2FA in front of it? I'm trying to get it to work, but i can't get any messages to my mobile phone. I use nginx proxy manager with Authelia, the code that i put in advance is:
Can you help me out? |
No, as far as I understood the mobile app needs to be able to understand/support the initial HTTP redirect any 2FA solution implies (browsers are built for this and have no problems) - so no real chance to solve this with authelia config. Basically still waiting for app support, and its unfortunately one of those topics that can easily be seen as "out of scope" on that side either, so I don't blame the devs if it takes long / they decide to not support this use-case. |
I just got it working! In the authelia config:
And in NginX Proxy Manager under the advance tab:
Rebooted authelia and when i want to login to the web GUI, i got 2FA from authelia, and when i sended a message to my android mobile phone, i received it. I'm not home, so i got it externally. Was searching for this solution for months, so i thought i'll share it with you guys! |
Ah thats cool, I'll also try it! |
Hm I think it is still kind of an "out of band" solution - so you logged in on the web GUI (on your phone?) first, and then the app started working? So it seems the app can handle the case where you are already logged in on the 2FA/Authelia level and you get forwarded to the actual gotify page without intervention. But I'm purely speculating here, haven't had the time to try anything by myself! |
I noticed that not all messages where working. I couldn't login to the android app neighter, i tried to figure it out and i think i got it completly working now. I can login to the app as well and all the messages are comming through. If i open the webinterface from gotify in https://gotify.YOURDOMAIN.COM i get authelia 2FA first. In the authelia config:
And in NginX Proxy Manager under the advance tab:
|
In a ticket for gotify server it was stated that 2FA should be added via external services: gotify/server#461
This works well for the WebUI (I'm personally using traefik + authelia for 2FA in front of gotify).
Unfortunately this is a problem for the Android client application, which is not able to follow the redirect workflow imposed by 2FA.
This seems to be a general problem I've seen for many other selfhosted projects that provide a WebUI + client - when adding external 2FA, usually the client application breaks.
So it seems there are 3 "solutions" to this dilemma:
Any thoughts on this / am I missing something?
The text was updated successfully, but these errors were encountered: