Dhairya Vermarajurastogi.hashnode.dev·Nov 1, 2023Golang: Gin middleware for authenticationIn this blog, we will delve into gin middleware to authorize the user access Token. sampleRoute := router.Group("/sample") // we are telling gin to use TokenAuthMiddleware // for all requests with path /sample/* sampleRoute.Use(middle...Discuss·80 readsGo Language
SHIVANI GANIMUKKULAshivanig.hashnode.dev·Oct 19, 2023Gin & GORM in GolangGolang is an open-source, procedural and statically typed programming language designed by Google. Go is popular because of its simplicity, readability, efficiency, and concurrent nature. Go is used for backend programming, also popular for making co...Discuss·42 readsgolang
Sidharthan Chandrasekaran KamarajforThe Bug Shotsthebugshots.dev·Sep 6, 2023Safeguard Your REST APIs Using Open Policy Agent - OPAAuthorization is a crucial concern for most applications. As app logic grows, permission checks often get scattered across handlers, middlewares, and external services. This leads to duplicated logic and inconsistencies. Open Policy Agent (OPA) provi...Discuss·77 readsGolangopa
Arsham Aryaarshamalh.hashnode.dev·Mar 10, 2023Trying to shut down a gin server... (goroutines and channels tips)Sometimes I write about specific real-world problems I faced at work in the past.In this article, I was trying to gracefully shut down my gin server and start it again through the application itself, without re-running my application. I learned some ...Discuss·1 like·82 readsGo Language
Carlos Armando Marcano Vargascarlosmv.hashnode.dev·Nov 15, 2022JWT Authentication with Gin | GoIn this article, we will build an authentication API with two endpoints, a register endpoint to sign up users and a login endpoint. Then we will add two endpoints that will need authentication and authorization to get access. For this article will b...Discuss·2 likes·2.2K readsgin