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

API/http - explicitly send cookie for api requests #5203

Merged
merged 2 commits into from
Jan 30, 2019
Merged

API/http - explicitly send cookie for api requests #5203

merged 2 commits into from
Jan 30, 2019

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Jan 28, 2019

whether a cookie gets sent via fetch depends on the value of credentials,

the default value is however unspecified causing some people unable to log in (without getting logged out right away) when the cookie was not sent

unifying the behaviour between http (which sent it since #3978),
and API (which didn't but should since the changes in #5164).

Cc @djberg96 - thanks for all the debugging! :)
Cc @hstastna - I think this will solve the problem you've been having too

whether a cookie gets sent via fetch depends on the value of `credentials`,

the default value is however unspecified causing some people unable to log in (without getting logged out right away) when the cookie was not sent

unifying the behaviour between http (which sent it since #3987),
and API (which didn't since the changes in #5164)
@djberg96
Copy link
Contributor

👍

…h parameters

merged the test with the helper as it was not used anywhere else,

and updated to *not* mock `window.fetch`, but instead use `API.post`
@miq-bot
Copy link
Member

miq-bot commented Jan 28, 2019

Checked commits https://github.com/himdel/manageiq-ui-classic/compare/05fba848ed566219e1477eac4758ffcae58d7ad3~...d2465589ea99d63b655b49ab00bf9ee2c5b76fa3 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

@hstastna
Copy link

👍

@mzazrivec mzazrivec self-assigned this Jan 30, 2019
@mzazrivec mzazrivec added this to the Sprint 104 Ending Feb 04, 2019 milestone Jan 30, 2019
@mzazrivec mzazrivec merged commit 1a35f7c into ManageIQ:master Jan 30, 2019
@himdel himdel deleted the api-login branch January 30, 2019 10:19
himdel added a commit to ZitaNemeckova/manageiq-ui-classic that referenced this pull request Feb 15, 2019
the helper was removed in ManageIQ#5203 but I left a reference to it in jasmine config
himdel added a commit to ZitaNemeckova/manageiq-ui-classic that referenced this pull request Feb 15, 2019
the helper was removed in ManageIQ#5203 but I left a reference to it in jasmine config
@himdel himdel mentioned this pull request Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants