Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

OIDC/OAuth support #284

Open
luochen1990 opened this issue Nov 4, 2024 · 2 comments
Open

OIDC/OAuth support #284

luochen1990 opened this issue Nov 4, 2024 · 2 comments

Comments

@luochen1990
Copy link
Contributor

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"
@tecosaur
Copy link

tecosaur commented Nov 6, 2024

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
Copy link

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants