guests icon indicating copy to clipboard operation
guests copied to clipboard

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

Open julien-nc opened this issue 1 year ago • 3 comments

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 avatar Apr 23 '24 08:04 julien-nc

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

nickvergessen avatar Apr 29 '24 11:04 nickvergessen

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

No, this should be all fine.

blizzz avatar Apr 29 '24 13:04 blizzz

@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

julien-nc avatar Apr 29 '24 13:04 julien-nc

All green now 🟢

solracsf avatar Jun 12 '24 07:06 solracsf