fiber-opentelemetry
jwt
Our great sponsors
fiber-opentelemetry | jwt | |
---|---|---|
1 | 1 | |
20 | 403 | |
- | - | |
7.7 | 4.2 | |
almost 2 years ago | 11 months ago | |
Go | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fiber-opentelemetry
-
SigNoz - an open-source alternative to DataDog with Go processors | v0.2.0 Released with external API and DB calls monitoring
I've found this middleware: https://github.com/psmarcin/fiber-opentelemetry
jwt
-
📖 Build a RESTful API on Go: Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers
// ./pkg/middleware/jwt_middleware.go package middleware import ( "os" "github.com/gofiber/fiber/v2" jwtMiddleware "github.com/gofiber/jwt/v2" ) // JWTProtected func for specify routes group with JWT authentication. // See: https://github.com/gofiber/jwt func JWTProtected() func(*fiber.Ctx) error { // Create config for JWT authentication middleware. config := jwtMiddleware.Config{ SigningKey: []byte(os.Getenv("JWT_SECRET_KEY")), ContextKey: "jwt", // used in private routes ErrorHandler: jwtError, } return jwtMiddleware.New(config) } func jwtError(c *fiber.Ctx, err error) error { // Return status 401 and failed authentication error. if err.Error() == "Missing or malformed JWT" { return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{ "error": true, "msg": err.Error(), }) } // Return status 401 and failed authentication error. return c.Status(fiber.StatusUnauthorized).JSON(fiber.Map{ "error": true, "msg": err.Error(), }) }
What are some alternatives?
tutorial-go-fiber-rest-api - 📖 Build a RESTful API on Go: Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers.
otsql - Go sqldriver's hook, support opentelemetry & prometheus.
uuid - Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services.
opentelemetry-go-contrib - Collection of extensions for OpenTelemetry-Go.
fiber-swagger - fiber middleware to automatically generate RESTful API documentation with Swagger 2.0.
signoz - SigNoz is an open-source observability platform native to OpenTelemetry with logs, traces and metrics in a single application. An open-source alternative to DataDog, NewRelic, etc. 🔥 🖥. 👉 Open source Application Performance Monitoring (APM) & Observability tool
migrate - Database migrations. CLI and Golang library.
swagger-ui - Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
validator - :100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
swag - Automatically generate RESTful API documentation with Swagger 2.0 for Go.