Shared Links via Shibboleth

Hi,

I’m on pro 6.18.

I noticed that a shared link (to a library or a file) is not persistent while connecting via shibboleth, whereas ity is persistent while connecting while a local account.

If you connect from a shared link, you are send to the home page of seahub.

Cold you check this on your side (it is quite unconvenient) ?

Regards,

Gautier

Do you mean that you get redirected to the homepage after having logged in?
I see a similar behaviour when I want to access the “System Administration” menu and have to log in again (“sudo”). The workaround there is to just access the menu again after that and then it works.

Yes, we get a similar behaviour, but with a shared link redorected to the home page, you can’t access to the file in one click, you have to browse groups, librarires and so on.

That’s a pity.

Regards,
Gautier

If you open the link again, after logging in, it doesn’t work then?

Yes it does, but it’s a lack of efficiency.
I 'd like the link to be persistent on the fly accross shibboleth login/

Regards,

Gautier

Yes, yes, of course that should work!
I just wanted to verify that the workaround works, too. :wink:

1 Like

@daniel.pan Then i suppose it can be declared as a bug.
Regards, Gautier

I will look into the problem.

Thank you @daniel.pan

It can be tricky with shibboleth. I can help you with my logs. Juste tell me.

Regards

@gauburtin could u please send me full steps to reproduce your problem ?

Hi,

Share a Folder to a user (or send a internal link like this one)

The user receives a mail with a shared link

He clicks on the links and goes to the login interface

  • If he logs with a local account, he is send to the shared folder (the link is preserved)
  • If he logs with a shibboleth accoutns, he is send to the home page / (the link is broken by the shibboleth url rewrite process)

Can you reproduce ?

Anyway, with 6.2 Pro version, the Shibboleth authentification is no longer possible. Could you please look a the post here and reproduce the problem ?

Is is very important for us.

regards,

Gautier

Hi @gauburtin, as i replied in 6.2 Pro beta : Shibboleth Login fails (apache config), try restore to fastcgi mode, test shibboleth and redirection.

Hi @gauburtin, URL hash fragment is lost during Shibboleth login redirection somehow.
So we have to use javascript to manually add it back.

Try apply this patch https://github.com/haiwen/seahub/commit/bdde049a4e0e97bbbb94b833902a14dc331c02f1

Should fix your problem.

Hi @xiez,

Unfortunately, it did not fix the problem. I can do more tests if you need.
I removed seahub cache and restarted apache and seahub without fastcgi.
I’m not sure that Javascript is a good solution while working with shibboleth onto Proxy.
regards,
Gautier

Please paste your modification in login.html. No restart is required since it’s a html file.

Try open a private window (firefox) or Incognito window (chrome), and test the whole steps again.

Hi,

I pasted it in /seahub-data/custom/templates/registration/, and the modification is shown in the source of the login page.
I restarted apache to apply the config update (wsgi).

I does not work at all.

To let you know, there is also a shib login in the admin Web UI while the session of the admin has ended. Do i have to update another file ?
regards

regards,
Gautier

Please fall back to fastcgi mode. This patch only fix the redirection problem during login.

It would be helpful if you can send me your seafile service link and shibboleth test account through private message.

This problem is specific to wsgi mode.
Check here : 6.2 Pro beta : Shibboleth Login fails (apache config)

I sent you the link at your support adress

Regards,
Gautier

Hi,
I switched to fastcgi mode. If you want to test wsgi mode, just tell me.
Regards
Gautier

Right, the patch fixes the problem !

There was a confusion with the linked post, sorry,
Regards
Gautier