Skip to content

Resources for Serverless Authentication + Authorization Webinar

Notifications You must be signed in to change notification settings

bastienlaval/auth-webinar

 
 

Repository files navigation

Serverless Authentication + Authorization with Dgraph & Auth0 Webinar Resources (August 27th, 2020)

Video

Video will be linked here after the webinar.

Prerequesites

Dgraph

Fastest way to get started with Dgraph is to create a free Slash GraphQL account: click here.

Auth0

Sign up for a free Auth0 account here: https://auth0.com

Schema

Starting Schema

Finished Schema

Mutations (Data)

Mutation (Users + Todos)

Auth0

To generate a public key from a private key, use:

openssl x509 -pubkey -noout -in file_name.pem

This rule is used to inject the claims needed by Dgraph into the JWT token created by Auth0.

function (user, context, callback) {
  const namespace = "https://dgraph.io/jwt/claims";
  context.idToken[namespace] =
    {
      'USER': user.email,
    };
  
  return callback(null, user, context);
}

Resources

Intro to JWT - JWT.io

https://jwt.io/introduction/

Intro to Dgraph Schema - Dgraph.io

https://dgraph.io/blog/post/slash-intro-to-schema/

About

Resources for Serverless Authentication + Authorization Webinar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.7%
  • HTML 27.3%