How to Disable an Authentication Provider in Reindex

Matt Seccafien
cartogram
Published in
1 min readJul 3, 2016

I have been working with Reindex.io as a backend lately, dipping my toes into the Relay and GraphQL world. Reindex.io is a Backend as a Service for Relay and GraphQL and, though it seems surprisingly underused at the moment, feels production-ready and something I am considering for a project.

This is still early days for me and I have mostly been working with the authentication providers, Auth0 in particular, and how these integrate with the Reindex.io backend.

Here is a quick-tip for how to disable an Authentication Povider in Reindex.io from the GraphiQL interface.

First you will want to open the GraphiQl provider by typing reindex graphiql in the command line.

We can use the updateReindexAuthenticationProvider mutation, but first we need to find out the ID of the provider we want to disable. For this step we can use the allReindexAuthenticationProviders to list all providers we have:

{
viewer {
allReindexAuthenticationProviders {
nodes { id, type, isEnabled }
}
}
}

Then, we grab the provider ID we want to disable, and run a mutation to set isEnabled to false:

mutation {
updateReindexAuthenticationProvider(input: {
id: "<PROVIDER-ID>",
isEnabled: false
}) {
id
}
}

If we run the allReindexAuthenticationProviders query again, we should no longer see the provider we just disabled. Sweet.

--

--

Matt Seccafien
cartogram

Designer, developer and co-founder of @studiocartogram and @fondfolio