Skip to content

Instantly share code, notes, and snippets.

@quiaro
Last active November 15, 2017 18:58
Show Gist options
  • Select an option

  • Save quiaro/647cd0d2a1aff9d27f181d105e9f371b to your computer and use it in GitHub Desktop.

Select an option

Save quiaro/647cd0d2a1aff9d27f181d105e9f371b to your computer and use it in GitHub Desktop.
service config - Graphcool with Auth0
types: ./types.graphql
functions:
authenticate:
handler:
code:
src: ./src/auth0/auth0Authentication.js
environment:
AUTH0_DOMAIN: ${env:AUTH0_DOMAIN}
AUTH0_CLIENT_ID: ${env:AUTH0_CLIENT_ID}
type: resolver
schema: ./src/auth0/auth0Authentication.graphql
# Model/Relation permissions are used to limit the API access
# To take the burden of thinking about those while development, we
# preconfigured the wildcard ("*") permission that allows everything
# Read more here:
# https://docs-next.graph.cool/reference/auth/authorization/overview-iegoo0heez
permissions:
- operation: "*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment