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

fix(signin): Check for all available cookies instead of the count #504

Merged
merged 1 commit into from
Apr 26, 2023
Merged

fix(signin): Check for all available cookies instead of the count #504

merged 1 commit into from
Apr 26, 2023

Conversation

TheiLLeniumStudios
Copy link
Contributor

Hi,

It is possible to have multiple cookies returned on a successful sign-in response, specially when it is running behind a reverse proxy etc. This PR fixes the issue by looking up the cookies that contain influxdb within the name (it works on both OSS and cloud) and using the value of that cookie instead of checking for cookie array size.

Copy link
Contributor

@jeffreyssmith2nd jeffreyssmith2nd left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! 🎉

@jeffreyssmith2nd jeffreyssmith2nd merged commit 3a2e139 into influxdata:main Apr 26, 2023
jeffreyssmith2nd added a commit that referenced this pull request Apr 26, 2023
* chore: build windows packages on release (#490)

* fix: don't attempt to overwrite influxdb installs (#493) (#494)

* fix: don't attempt to overwrite influxdb installs

* fix: don't attempt to overwrite influxdb installs

* fix: rename package to influxdb2-cli (#495)

The package filename remains "influxdb2-client"; however, internally
the package has been renamed to "influxdb2-cli". This is so upgrades
are performed correctly by apt and yum (which use the package
metadata rather than the filename).

This also swaps out underscores to slashes to match what
influxdata-docker expects.

* chore: update to go 1.20.3 (#496)

* chore: update to go 1.20.3

* chore: update to go 1.20.3

* chore: use remote package signing (#498)

* chore: make sure .exe is on windows builds (#500)

* chore: make sure .exe is on windows builds

* chore: make sure .exe is on windows builds

* build(deps): bump golang.org/x/text from 0.3.7 to 0.3.8 (#499)

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](golang/text@v0.3.7...v0.3.8)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(signin): Check for all available cookies instead of the count (#504)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Brandon Pfeifer <bpfeifer@influxdata.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: iLLeniumStudios <104288623+TheiLLeniumStudios@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants