microbin icon indicating copy to clipboard operation
microbin copied to clipboard

OIDC/OAuth support

Open luochen1990 opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

I'm always frustrated when I want to share a big file with my friends, since allowing unauthorised user to upload big file might cause the disk space abused.

Describe the solution you'd like

Allowing user login via OIDC, and add limitation options for login user and unauthorised user seperatelly.

ALLOW_UPLOAD = "none" / "login" / "all"
ALLOW_UPLOAD_FILE =  "none" / "login" / "all"

luochen1990 avatar Nov 04 '24 08:11 luochen1990

Hello! I've wanted to do something similar myself, and in case you find it helpful I'll share how Caddy + Authelia can be used to make uploading require login:

pastes.example.com {
    route /raw/* {
        reverse_proxy :4144 {
            header_down Content-Type "text/plain; charset=UTF-8"
        }
    }
    @public path /static/* /upload/* /file/* /p/* /raw/* /u/* /qr/* /auth/* /auth_file/*
    route @public {
        reverse_proxy :4144
    }
    route * {
        import auth
        reverse_proxy :4144
    }
}

tecosaur avatar Nov 06 '24 14:11 tecosaur

The one thing that I'd actually consider helpful is allowing removal of password auth for the admin page, since I'm now handling access/auth myself.

tecosaur avatar Nov 30 '24 05:11 tecosaur

is OIDC support available now? I'd like to use caddy +authelia OIDC.

lazyzyf avatar Feb 13 '25 16:02 lazyzyf