Skip to content
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

Allow public page access to apps with group restrictions on #5309

Open
pranavk opened this issue Jun 8, 2017 · 5 comments
Open

Allow public page access to apps with group restrictions on #5309

pranavk opened this issue Jun 8, 2017 · 5 comments
Labels
1. to develop Accepted and waiting to be taken care of enhancement feature: apps management needs review Needs review to determine if still applicable security

Comments

@pranavk
Copy link

pranavk commented Jun 8, 2017

Currently, when group restrictions are on, it is not possible to have a controller method declared as public page because the security middleware checks if the app is enabled for the user unconditionally.

See: https://github.com/nextcloud/server/blob/master/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php#L188

Although, when group restrictions are disabled, then \OC_App::isEnabled($this->appName) returns true making it possible to access a public controller method.

However, an app might need to make a method public even when group restrictions are on. My use case is nextcloud/richdocuments where the document editing service requires to download the document from nextcloud to be able to edit it. Since it has no user context, it downloads the file (and does some other stuff too) via a public controller method, which fails when group restrictions are on.

I think we may need to introduce a new annotation here and then guard the security middleware method there with it.

@julien-nc
Copy link
Member

Did you find a solution ? I'm looking for a way to allow public pages to my apps (PhoneTrack and GpxPod) when they are group restrictions...

@julien-nc
Copy link
Member

There is a duplicate of this issue : #6962

julien-nc pushed a commit to julien-nc/server that referenced this issue Feb 28, 2018
julien-nc pushed a commit to julien-nc/server that referenced this issue Feb 28, 2018
…xception for app public pages

Signed-off-by: Julien Veyssier <[email protected]>
julien-nc pushed a commit to julien-nc/server that referenced this issue Feb 28, 2018
julien-nc pushed a commit to julien-nc/server that referenced this issue Feb 28, 2018
…loud#6962, refs nextcloud#5309

It allows non-logged user to access public pages of applications restricted to a group

Signed-off-by: Julien Veyssier <[email protected]>
@julien-nc
Copy link
Member

#8593 partially fixes the problem : Routing system is still redirecting users who are not in any authorized group when they try to access to public pages of restricted apps. I'll try to find where to fix that.

@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@skjnldsv skjnldsv added the 1. to develop Accepted and waiting to be taken care of label Jun 12, 2019
@ghost ghost removed the stale Ticket or PR with no recent activity label Jun 12, 2019
@szaimen
Copy link
Contributor

szaimen commented May 21, 2021

I suppose this issue is still valid? If not, please close this issue!

@Rello
Copy link
Contributor

Rello commented Jan 13, 2025

this issue is still valid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of enhancement feature: apps management needs review Needs review to determine if still applicable security
Projects
None yet
Development

No branches or pull requests

7 participants