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

Fixed Admin UI sometimes using the wrong auth mutation name #2901

Merged
merged 6 commits into from
May 6, 2020

Conversation

Vultraz
Copy link
Contributor

@Vultraz Vultraz commented May 5, 2020

Fixes #2900

The auth provider uses itemQueryName to conjugate the mutation name:

authenticateMutationName: `authenticate${itemQueryName}With${upcase(authStrategy.authType)}`,

As seen in the above issue, that's not necessarily always the same as listKey.

This saves a copy of the auth gql names in the strategy which are then passed to the admin meta. Design-wise, it's consistent with how the general CRUD gql names are handled.

@changeset-bot
Copy link

changeset-bot bot commented May 5, 2020

🦋 Changeset is good to go

Latest commit: a37ae3a

We got this.

This PR includes changesets to release 3 packages
Name Type
@keystonejs/app-admin-ui Patch
@keystonejs/auth-password Patch
@keystonejs/keystone Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@molomby molomby left a comment

Choose a reason for hiding this comment

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

LGTM

@timleslie timleslie merged commit 2a1e4f4 into keystonejs:master May 6, 2020
@Vultraz Vultraz deleted the auth-strat-fix branch May 6, 2020 02:04
This was referenced May 6, 2020
@pimvanderheijden
Copy link

Any idea when I could be starting to use @keystonejs/app-admin-ui version 6.0.0 or a release candidate containing the fix?

Tried to run my project as a demo project within the Keystone project, but that didn't work out, obviously.

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.

Wrong list key used for authenticate mutation
4 participants