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

[bookworm] Return auth cookie valid for whole main domain. #1809

Merged
merged 1 commit into from May 18, 2024

Conversation

orhtej2
Copy link
Contributor

@orhtej2 orhtej2 commented Mar 26, 2024

The problem

If app specify private path it's impossible to access as yunohost.portal cookie is not forwarded when app is installed on subdomain.

Solution

Return cookie valid for .domain.tld, just like old SSOWat did. Come to think about it we should return cookies valid for all domains?

PR Status

It worked once.

How to test

Install LimeSurvey from https://github.com/orhtej2/limesurvey_ynh/tree/patch-2 and see if you can access admin.

@orhtej2 orhtej2 changed the title Return auth cookie valid for whole main domain. [bookworm] Return auth cookie valid for whole main domain. Mar 26, 2024
Copy link
Contributor

@tituspijean tituspijean left a comment

Choose a reason for hiding this comment

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

Tested and approved

@tituspijean
Copy link
Contributor

Come to think about it we should return cookies valid for all domains?

I think it's to prepare the move to "one domain, one portal" down the line. (https://forum.yunohost.org/t/call-for-feedback-sso-portal-in-multi-domain-context-how-should-it-work/7491)

@alexAubin alexAubin merged commit dc5c432 into YunoHost:bookworm May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants