Auto Login using Forward Authentification Header #801
Replies: 9 comments 6 replies
-
See this discussion: #284 |
Beta Was this translation helpful? Give feedback.
-
I'd gladly accept a PR on this. Unfortunately, I'm not sure I can be much help in how to approach it. Happy to answer any questions you have though! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm very interested in this as well. For those of us who will only run Mealie behind a reverse proxy with SSO, header-based auth is actually a significantly more streamlined user experience than SAML or direct LDAP - users who are already authenticated via SSO are automatically logged in upon visit. Direct LDAP connection can only handle keeping credentials in sync, but does nothing for the ergonomics of actually getting logged in. I looked into this, and ran into a couple of problems:
Generally, the strategy is to have the app detect those headers server-side on every request, and then when rendering the response, perform a |
Beta Was this translation helpful? Give feedback.
-
Honestly, I'd prefer this method over OIDC. I have multiple apps running various levels of OIDC and forward auth, and unequivocally, forward auth is superior from a microservice standpoint. Pros:
Cons:
|
Beta Was this translation helpful? Give feedback.
-
I'd be very interested in OIDC! I run an Authelia instance, and it makes it very convenient to authenticate all of my family and friends with my services. |
Beta Was this translation helpful? Give feedback.
-
I've implemented this feature here: #2206 I'm doing the finishing touches, let me know if this works for you. |
Beta Was this translation helpful? Give feedback.
-
Just chiming in my input here, would be best to have it as a config file option. I use cloudflare tunnels and zero trust, as well as a mix of Pritunl. It would be preferable to be able to set a HTTP header that should designate as An example would be: Setting('AUTH_CLASS', 'Grocy\Middleware\ReverseProxyAuthMiddleware');
// Options when using ReverseProxyAuthMiddleware
Setting('REVERSE_PROXY_AUTH_HEADER', 'X-Forwarded-User'); This means that if you have non-normal headers, you wont have any issues |
Beta Was this translation helpful? Give feedback.
-
hi @michael-genson this feature is actually not available in mealie, did you intend to close this as resolved? |
Beta Was this translation helpful? Give feedback.
-
Before submitting this feature request I have
COMPLETE AND FILL THESE OUT
Please Describe The Problem To Be Solved
I am using a reverse proxy with authentification. The reverse proxy provides forward authentification.
https://doc.traefik.io/traefik/middlewares/http/forwardauth/
It would be great if an auto login could be implemented analogous to this:
causefx/Organizr#1215
Additional Information
I would be happy to do this, but I would need some advice for this.
Beta Was this translation helpful? Give feedback.
All reactions