Authentication and Authorization for GraphQL

Authentication and Authorization for GraphQL
Run the App and API
2 mins
Tour the GraphQL Implementation
8 mins
Include a JWT in a GraphQL Request
4 mins
Add the User to the GraphQL Context Object
6 mins
Check Authorization in a Resolver
4 mins
Add a Function to Check the User's Role
5 mins
Define an Auth Schema Directive
3 mins
Add a Custom Directive Class
3 mins
Complete the Auth Directive Class
9 mins
Apply the Auth Directive to the Schema
4 mins
Use the User's Sub Claim
2 mins
Redirect to the Login Page
4 mins