When building an API, securing your data is just as important as exposing it. This post walks you through how to implement authentication and role-based access control in GraphQL using Golang, with a powerful feature called GraphQL Directives. We’ll learn how to: Authenticate users using JWT Restrict query access using roles Use @auth directives to handle access control directly in the … Continue reading Securing GraphQL in Golang using Directives for Authentication & Authorization
Category: Go
The Beginner’s Guide to Go Memory Allocation: Stack, Heap, and Escape Analysis
When programming in Go, understanding how variables are allocated in memory is crucial for writing efficient and performant code. In this article, we’ll delve into the concepts of stack, heap, and escape analysis, ensuring even beginners can grasp these fundamental topics. Stack & Heap : In Go, variables are allocated in two primary memory locations: the stack and the heap. Let’s … Continue reading The Beginner’s Guide to Go Memory Allocation: Stack, Heap, and Escape Analysis
SSO Implementation Using ReactJS & Golang For Google
What is Single Sign-On (SSO)? Single Sign-On (SSO) is a user authentication process allowing individuals to access multiple applications with a single login credentials. Instead of remembering different usernames and passwords for each app or service, users sign in once and can access all connected systems without re-entering their credentials. Here’s an easy way to … Continue reading SSO Implementation Using ReactJS & Golang For Google
