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

Add 'direct' GET param to invite email 'view share' link #1151

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

julien-nc
Copy link
Member

@julien-nc julien-nc commented Apr 23, 2024

If user_saml or user_oidc are configured to automatically redirect the login page to an IdP, guests can't authenticate when clicking the link included in the share/invite email.

Adding the direct=1 GET param to the /f/FILE_ID link works because the GET param is preserved when being redirected to the login page.

Should this be optional? I think it's fine to always have it since we know we want a direct login for guests.
Wdyt?

@julien-nc julien-nc added enhancement New feature or request 3. to review Waiting for reviews labels Apr 23, 2024
Copy link
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@julien-nc julien-nc force-pushed the enh/noid/view-share-direct-link branch from bd6bf19 to 6a2cbc9 Compare April 29, 2024 11:18
@nickvergessen
Copy link
Member

@blizzz i only know the direct from saml, any chance this conflicts/creates an issue?

@blizzz
Copy link
Member

blizzz commented Apr 29, 2024

@blizzz i only know the direct from saml, any chance this conflicts/creates an issue?

No, this should be all fine.

@julien-nc
Copy link
Member Author

julien-nc commented Apr 29, 2024

@blizzz Thanks

Static analysis failure is due to a new method recently added in lib/private/Files/Storage/Wrapper/Wrapper.php
https://github.com/nextcloud/server/blame/master/lib/private/Files/Storage/Wrapper/Wrapper.php#L678-L680

…uests can login when SSO is enabled (with user_saml, user_oidc...)

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@solracsf solracsf force-pushed the enh/noid/view-share-direct-link branch from 6a2cbc9 to 60e004c Compare June 12, 2024 07:05
@solracsf
Copy link
Member

All green now 🟢

@julien-nc julien-nc merged commit 6c22d03 into master Jun 12, 2024
42 checks passed
@julien-nc julien-nc deleted the enh/noid/view-share-direct-link branch June 12, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants