There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

selfhosted service to share files to SSO-authenticated users ?

Hi all,

Well, my question is in the title of of post. :-)

Does somebody know if there exists an easy sollution to share files to users (e.g. members of an organisation), based on the fact that the user is known in a SSO (authentik) ?

I know nextcloud would be an option, but that would create a nextcloud account for all the users, … which is quite overkill for what is needed here.

I know we can probably build something based on apache, PHP or so, … but if there would be a ready-to-use service for this, that would be nice. (and probably a lot more secure then what I would build myself :-) ).

Kr.

chiisana ,
@chiisana@lemmy.chiisana.net avatar

You could use just a simple Apache (or even some simpler static file server) with no authentication what so ever, but only accessible to your own network. Then, add a Reverse Proxy Gateway such as Traefik, Caddy or whatever else, and add Authentik as a Middleware. User heads to the site (I.e.: files.yourdomain.ext), Reverse Proxy Gateway bounces the request to the Middleware (I.e. Authentik), requires the SSO via whatever authority you’ve got setup, gets bounced back, and then your Reverse Proxy Gateway serves up the static content via the internal network without authentication (i.e.: 172.16.10.3).

Check out Forward Auth section of Authentik docs here: goauthentik.io/docs/providers/proxy/forward_auth

kristoff OP ,

Yes, that’s a very useful idea. Thanks!

NeoNachtwaechter ,

which is quite overkill for what is needed here.

Not sure what that means, but if you only need samba shares: samba supports many different methods of user auth.

WhyAUsername_1 ,

This. Network folder with read only access.

lckdscl ,
@lckdscl@whiskers.bim.boats avatar

SFTPGo supports OIDC and has a lot of ACL features. It allows users to have their own folders, as well as shared volumes between a group.

porksoda ,

Big fan of SFTPGo. We use it at work - it’s rock solid and feature rich.

redcalcium ,

If nextcloud is overkill, then just serve the file with Apache (with directory listing turned on) and put it behind oauth2-proxy. It’s as simple as it can get.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines