Skip to content

Deny access to cloud /login?direct=1 by default #37

New issue

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

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

Already on GitHub? Sign in to your account

Open
lvps opened this issue Nov 13, 2024 · 0 comments
Open

Deny access to cloud /login?direct=1 by default #37

lvps opened this issue Nov 13, 2024 · 0 comments
Labels
automation bug Something isn't working container files enhancement New feature or request scripts

Comments

@lvps
Copy link
Member

lvps commented Nov 13, 2024

Nginx rule:

            location ~ \.php(?:$|/) {
                # Block direct login: https://github.com/nextcloud/user_saml/issues/284
                if ( $request_uri ~ ^\/+(?:index\.php\/+)?login\?(?:.*&)*direct(?:[&=]|$) ) {
                    return 403;
                }
                ...

But we need a way to disable the block during updates (a script that makes some change with sed?)

@lvps lvps added bug Something isn't working enhancement New feature or request container files scripts automation labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation bug Something isn't working container files enhancement New feature or request scripts
Projects
None yet
Development

No branches or pull requests

1 participant