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

Disable introspection #255

Open
jpmermoz opened this issue May 9, 2023 · 1 comment
Open

Disable introspection #255

jpmermoz opened this issue May 9, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jpmermoz
Copy link

jpmermoz commented May 9, 2023

Is there a way to disable public introspection when mounting the schema using mount_graphql_devise_for ?
I've tried this way but its still enabled:

mount_graphql_devise_for(
    User,
    {
      at: "auth",
      additional_mutations: {
        sso_login: Mutations::SsoLogin,
        user_login: Mutations::Login
      },
      public_introspection: false
    }
  )

Thank you

@mcelicalderon
Copy link
Member

Hey, @jpmermoz! I don't think there's a way now. We need to do something similar to what is described in https://graphql-ruby.org/schema/introspection.html#disabling-introspection for the separate route. We do support public or authroized introspection when using the plugin in your schema as described in https://github.com/graphql-devise/graphql_devise#introspection-query

I'll look into how much effort it would be to add this if you are using the mount_graphql_devise_for method

@mcelicalderon mcelicalderon added the enhancement New feature or request label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants