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

7.0 RC: Remove hardcoded check for session.id #10013

Merged
merged 1 commit into from
Feb 14, 2024
Merged

Conversation

cannikin
Copy link
Member

@cannikin cannikin commented Feb 14, 2024

Fixes bug when User table had a primary key other than id. Shout out to @will-ks for finding this!

Impact

For apps which had a primary key other than id, all users will be logged out on their next request after this is deployed.

Not sure if we consider that breaking? But it is 7.0 so anything goes!

Closes #10005

…ny user data defined by `allowedUserFields` not only `id`

Closes #10005
@cannikin cannikin added bug/confirmed We have confirmed this is a bug topic/auth release:fix This PR is a fix fixture-ok Override the test project fixture check labels Feb 14, 2024
@cannikin cannikin added this to the v7.0.0 milestone Feb 14, 2024
@cannikin cannikin requested a review from jtoar February 14, 2024 21:40
@cannikin cannikin self-assigned this Feb 14, 2024
Copy link
Contributor

@jtoar jtoar left a comment

Choose a reason for hiding this comment

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

Thanks @cannikin!

@jtoar jtoar merged commit 8b499f9 into main Feb 14, 2024
40 checks passed
@jtoar jtoar deleted the rc-dbauth-session-id branch February 14, 2024 23:10
jtoar pushed a commit that referenced this pull request Feb 15, 2024
Fixes bug when User table had a primary key other than `id`. Shout out
to @will-ks for finding this!

### Impact 

For apps which had a primary key other than `id`, all users will be
logged out on their next request after this is deployed.

Not sure if we consider that breaking? But it is 7.0 so anything goes!

Closes #10005
dac09 added a commit to dac09/redwood that referenced this pull request Feb 16, 2024
* 'main' of github.com:redwoodjs/redwood: (22 commits)
  fix: Handle static assets on the `rw-serve-fe` (redwoodjs#10018)
  fix(server): fix env var loading in `createServer` (redwoodjs#10021)
  fix(deps): remove react types packages from `@redwoodjs/testing` dependencies (redwoodjs#10020)
  chore(release): add back `update-package-versions` task (redwoodjs#10017)
  chore(renovate): Disable for experimental apollo package (redwoodjs#10016)
  RSC: server cells lowercase data function (redwoodjs#10015)
  fix(RSC/SSR): pass CLI options through to apiServerHandler (redwoodjs#10012)
  7.0 RC: Remove hardcoded check for `session.id` (redwoodjs#10013)
  Spelling fix in what-is-redwood.md (redwoodjs#10011)
  Typos in realtime.md (redwoodjs#10010)
  RSC: Server cell smoke tests (redwoodjs#10008)
  RSC: test-project EmptyUser 'use client' cell (redwoodjs#10007)
  RSC: babel-plugin-redwood-cell remove redundant reset (redwoodjs#10006)
  chore(deps): Upgrade to yarn v4.1.0 (redwoodjs#10002)
  fix(docs): Spelling of `data-migrate` command (redwoodjs#10003)
  docs: add aliases fo `type-check` command (redwoodjs#10004)
  RSC: Insert 'use client' in scaffolded components (redwoodjs#9998)
  fix(telemetry): Fix 'destroy' spelling (redwoodjs#10000)
  chore(jsdocs): Fix jsdoc formatting for hover help (redwoodjs#9999)
  bug: Update setupHandler.ts firebase version (redwoodjs#9997)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/confirmed We have confirmed this is a bug fixture-ok Override the test project fixture check release:fix This PR is a fix topic/auth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug?]: v7.0.0 RC: dbAuth immediately invalidates cookie if using an id field other than "id"
2 participants