-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix: show ToS on non-files public pages (calendar/collectives/talk), Files on Nextcloud 31 and Login-flow #1046
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Grigorii K. Shartsev <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and it works as described. I would like Joas to have a saying if the approach is what we want
This comment was marked as resolved.
This comment was marked as resolved.
fc3d7e7
to
6ecb7da
Compare
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed behavior for logged-in users on public pages
✔️ Sounds like a desired change
There is one more change - it also applied to the login page, which might be unexpected
Similarly the registration app should be excluded, as it has a dedicated integration with the app.
To fix login and registration app, I suggest to check those parts in Also we need to check what happens with 2FA apps |
6ecb7da
to
6c770c3
Compare
Fixed with an exception for login flow grant. It also fixes the issue with the clients. |
lib/AppInfo/Application.php
Outdated
// Skip login-related pages | ||
// TODO: Add a universal way to specify skipped pages instead of hardcoding | ||
$skipPatterns = [ | ||
// Login | ||
'#^/login$#', | ||
// Login Flow Grant must have the terms of service | ||
// so that the user can accept them before using the app | ||
// TODO: add a checkbox on the login instead, like on the Registration app | ||
'#^/login/(?!flow/grant|v2/grant)#', | ||
// SAML | ||
'#^/saml$#', | ||
'#^/saml/#', | ||
// user_oidc | ||
'#^/code$#', | ||
'#^/sls$#', | ||
'#^/id4me$#', | ||
'#^/id4me/code$#', | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @julien-nc for this part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added /apps/<appname>
prefixes in a fixup
Tested:
|
Signed-off-by: Grigorii K. Shartsev <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
Signed-off-by: Grigorii K. Shartsev <[email protected]>
Signed-off-by: Grigorii K. Shartsev <[email protected]>
6c770c3
to
0ac77b5
Compare
Resolves
ToS checks for public pages by
#sharingToken
element. It doesn't work:@nextcloud/sharing
)Instead - check for the current user.
How to test
Changed behavior for logged-in users on public pages
Login flow
How to test
Screenshots