golang-gin-auth

Community

Secure Go Gin APIs with JWT & RBAC

Authorhenriqueatila
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a robust framework for implementing secure authentication and authorization in Go applications using the Gin web framework, protecting your APIs from unauthorized access and ensuring data integrity.

Core Features & Use Cases

  • JWT Authentication: Securely manage user sessions with short-lived access tokens and long-lived refresh tokens, including mechanisms for token blacklisting and rotation.
  • Role-Based Access Control (RBAC): Implement granular permissions to restrict access to specific API endpoints based on user roles.
  • Password Security: Safely handle user passwords using bcrypt hashing.
  • Use Case: When building a new microservice, integrate this Skill to handle user logins, protect sensitive endpoints like user profiles or admin dashboards, and manage user permissions effectively.

Quick Start

Use the golang-gin-auth skill to add JWT authentication middleware to your Gin API routes.

Dependency Matrix

Required Modules

github.com/golang-jwt/jwt/v5golang.org/x/cryptogithub.com/google/uuidgolang.org/x/time/rate

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: golang-gin-auth
Download link: https://github.com/henriqueatila/golang-gin-best-practices/archive/main.zip#golang-gin-auth

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.