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

Auth Switch #3

Closed
3 of 4 tasks
Tracked by #1
jasonbahl opened this issue Nov 27, 2023 · 0 comments · Fixed by #82
Closed
3 of 4 tasks
Tracked by #1

Auth Switch #3

jasonbahl opened this issue Nov 27, 2023 · 0 comments · Fixed by #82
Assignees

Comments

@jasonbahl
Copy link
Collaborator

jasonbahl commented Nov 27, 2023

User Story

As an admin user logged into the WordPress dashboard using the GraphiQL IDE, I would like to be able to execute queries as a public (non-authenticated) user or as the user I'm logged into WordPress as.

Acceptance Criteria

  • Match existing functionality
  • Button should exist near the other buttons (play, prettify, etc) that allows the user to click to toggle authentication state
  • User should be able to identify what state the execution is currently in (authenticated vs non-authenticated)
    • User's gravatar (if available) should show in the button, or a fallback generic user icon if no gravatar is available.
  • Button should be filterable (users could remove it or override it if they wanted to via a filter) This will be added as we work towards making things pluggable

NOTES:

  • Current version of the auth switch is written as an extension. While it could be "built-in" to the greater codebase, it was a good way to "prove" the hook/filter system and I think we should follow that pattern when we re-build it. We may refactor in the next phase of this project
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 a pull request may close this issue.

2 participants