Skip to content

Allow to specify the cookie type for appframework responses - #21479

Merged
blizzz merged 1 commit into
masterfrom
fix/21474/allow_specifying_cookie_type
Jun 22, 2020
Merged

Allow to specify the cookie type for appframework responses#21479
blizzz merged 1 commit into
masterfrom
fix/21474/allow_specifying_cookie_type

Conversation

@rullzer

Copy link
Copy Markdown
Member

In general it is good to set them to Lax. But also to give devs more
control over them is not a bad thing.

Helps with #21474

Signed-off-by: Roeland Jago Douma roeland@famdouma.nl

@rullzerrullzer added enhancement 3. to review Waiting for reviews labels Jun 19, 2020
@rullzerrullzer added this to the Nextcloud 20 milestone Jun 19, 2020
rullzer added a commit to nextcloud/user_saml that referenced this pull request Jun 19, 2020
Requires nextcloud/server#21479 to fully work.
Basically don't save this info in the session (which is lax by default
starting with NC19 but also soon with new chromes and firefox). We now
save it is a cookie that is set to None. This is the best we can do I
think.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@kesselb

Copy link
Copy Markdown
Contributor

tests/lib/AppFramework/Http/ResponseTest.php:117
tests/lib/AppFramework/Http/ResponseTest.php:152
tests/lib/AppFramework/Http/ResponseTest.php:170

Needs an update.

Comment threadlib/private/AppFramework/App.php Outdated
Comment threadlib/private/AppFramework/Http/Output.php
Comment threadlib/public/AppFramework/Http/IOutput.php
@rullzer
rullzer requested a review from blizzzJune 21, 2020 07:44
In general it is good to set them to Lax. But also to give devs more
control over them is not a bad thing.
Helps with #21474
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer
rullzerforce-pushed the fix/21474/allow_specifying_cookie_type branch from d299f74 to fbf9772CompareJune 22, 2020 06:38
@juliusknorrjuliusknorr added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jun 22, 2020
@blizzz
blizzz merged commit 859941d into masterJun 22, 2020
@blizzz
blizzz deleted the fix/21474/allow_specifying_cookie_type branch June 22, 2020 11:00
@blizzz

Copy link
Copy Markdown
Member

/backport to stable19

rullzer added a commit to nextcloud/user_saml that referenced this pull request Jul 7, 2020
Requires nextcloud/server#21479 to fully work.
Basically don't save this info in the session (which is lax by default
starting with NC19 but also soon with new chromes and firefox). We now
save it is a cookie that is set to None. This is the best we can do I
think.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
rullzer added a commit to nextcloud/user_saml that referenced this pull request Jul 10, 2020
Requires nextcloud/server#21479 to fully work.
Basically don't save this info in the session (which is lax by default
starting with NC19 but also soon with new chromes and firefox). We now
save it is a cookie that is set to None. This is the best we can do I
think.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
rullzer added a commit to nextcloud/user_saml that referenced this pull request Jul 10, 2020
Requires nextcloud/server#21479 to fully work.
Basically don't save this info in the session (which is lax by default
starting with NC19 but also soon with new chromes and firefox). We now
save it is a cookie that is set to None. This is the best we can do I
think.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
maxbes pushed a commit to Worteks/user_saml that referenced this pull request Aug 10, 2020
Requires nextcloud/server#21479 to fully work.
Basically don't save this info in the session (which is lax by default
starting with NC19 but also soon with new chromes and firefox). We now
save it is a cookie that is set to None. This is the best we can do I
think.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishenhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@rullzer@kesselb@blizzz@juliusknorr