Can login be disabled? #16
Replies: 5 comments 6 replies
-
Hello I had a look to the Sandstorm.io doc, I guess the best approch would be to make 2FAuth a Sandstorm package. |
Beta Was this translation helpful? Give feedback.
-
I could probably look into the packaging part, SQLite-based apps work pretty well on Sandstorm. But the big thing I see being a blocker is that we'd need to suppress the app's own login mechanism, hence the feature request. :) |
Beta Was this translation helpful? Give feedback.
-
Gonna bump this instead of creating a new thread because it's somewhat related. I'm hosting this package behind a reverse proxy that handles SSO for all my software via OAuth. The client applications either don't have login or look for a header that is forwarded from the OAuth provider with the username/email. From a quick look Sandstorm does the same thing. This could be implemented by looking for a configurable header name for a configurable unique identifier (email or username) and bypassing the login screen if the username/email match an existing user. It could possibly be extended by allowing signing up via this method also but that's probably a rare use case for this app. An implementation of this can be found in Grafana: https://grafana.com/docs/grafana/latest/auth/auth-proxy/ |
Beta Was this translation helpful? Give feedback.
-
2FAuth v3 now supports authentication proxy : https://docs.2fauth.app/security/authentication/#authentication-proxy It works exactly as @rpatel3001 described it, by looking for a dedicated header passed by the proxy. It should work at sandstorm.io, please let me know. |
Beta Was this translation helpful? Give feedback.
-
Could you please open a dedicated issue, I will have a look. Also, set the env var |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I host my apps on a Sandstorm.io server, where the platform handles login, starts and stops apps, and prevents unauthorized users from accessing running sessions of an app. Having a separate registration and login would make it hard to meaningfully package this for Sandstorm.
Additionally, if it didn't add another login barrier, a user could create a separate instance of 2FAuth (Sandstorm allows users to create many instances of any app), and share it with another user, if it was a 2FA for a shared account.
Describe the solution you'd like
Since 2FAuth is already single-user by design, ideally, a configuration option that disables the login/registration screens.
Describe alternatives you've considered
If there is a way to script the account creation... but I'm not sure that would remove the seamless login issue.
Beta Was this translation helpful? Give feedback.
All reactions