g8
paseto
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.
g8
paseto
-
Am I doing authorization correctly? I'm doing http-only cookie-based auth and to get the current user I call an API route that reads the cookie and returns the info
Check out paseto tokens
-
How to create and verify JWT & PASETO token in Golang
OK, let’s open the browser and search for paseto golang. Open its Github page and copy the URL: https://github.com/o1egl/paseto. Then run go get with this URL to download the package:
What are some alternatives?
fosite - Extensible security first OAuth 2.0 and OpenID Connect SDK for Go.
jwt - Community maintained clone of https://github.com/dgrijalva/jwt-go
slog-sampling - 🚨 slog sampling: drop repetitive log records
branca - :key: Secure alternative to JWT. Authenticated Encrypted API Tokens for Go.
authorizer - Your data, your control. Fully open source, authentication and authorization. No lock-ins. Deployment in Railway in 120 seconds || Spin a docker image as a micro-service in your infra. Built in login page and Admin panel out of the box.
go-guardian - Go-Guardian is a golang library that provides a simple, clean, and idiomatic way to create powerful modern API and web authentication.
cerbos - Cerbos is the open core, language-agnostic, scalable authorization solution that makes user permissions and authorization simple to implement and manage by writing context-aware access control policies for your application resources.
sjwt - Simple JWT Golang
sessiongate-go - A driver for the SessionGate Redis module - easy session management using the Go language.
cookiestxt - cookiestxt implement parser of cookies txt format
scope - Easily Manage OAuth2 Scopes In Go
scs - HTTP Session Management for Go