Replies: 1 comment 2 replies
-
It looks like Header-based auth has been implemented as of v0.36.0 🎉 Note that if you are using Registry Mode to share your registry/wishlist out with a link so users don't have to have log in with an account to see it, and then you put your instance behind an authentication proxy to use Header-based auth, those shared links will start displaying a login screen for your auth proxy. Fortunately, since Wishlist is using session cookies, you can configure your auth proxy to only protect the Here's an example of how to do this with Authelia:
|
Beta Was this translation helpful? Give feedback.
-
This is a BIG ask for a single-person project, but I wanted to capture it anyway, because I see it requested frequently for similar projects.
The two primary methods I have seen implemented on similar projects:
Remote-Name: T Pansino
,Remote-Email: [email protected]
,Remote-User: tpansino
) before the request reaches the application server. The application then just reads the username/email/name from each inbound request and trusts that the auth service did its job and that the request was sent by that user. This is often a LOT simpler to implement than OIDC because it only requires typically some middleware in your application to check the request for these headers. If you go this route - note that the middleware MUST check that the admin has actually enabled Forward Auth in the application settings first (otherwise an attacker can send a request with the headers already set, and the application will just trust it). It's also a good feature to allow the user to define the name of the header(s) the application reads from for username, email, etc, on the settings page because there isn't a clear standard for these header names and every reverse proxy uses different ones in my experience. Finally, you'll need to have the middleware handle automatically creating an account for a given username if they've never logged in before.Definitely a bigger project to implement this, and I'm personally not expecting to see progress anytime soon - if ever! :) But hopefully this helps if you ever do decide to implement it.
Happy to answer any questions as needed, and thanks again for your efforts.
Beta Was this translation helpful? Give feedback.
All reactions