scs
HTTP Session Management for Go (by alexedwards)
securecookie
Fast, secure and efficient secure cookie encoder/decoder (by chmike)
Our great sponsors
scs | securecookie | |
---|---|---|
6 | 2 | |
1,949 | 74 | |
- | - | |
6.3 | 0.0 | |
19 days ago | about 1 year ago | |
Go | Go | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
scs
Posts with mentions or reviews of scs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-04.
-
Authentication system using Golang and Sveltekit - Login and Logout
Although there are pretty good session managers in the Go ecosystem such as alexedwards/scs, golangcollege/session and gorilla/sessions, we won't use any but using this great guide, we'll write our own. This is to keep our project's dependence on external packages at the barest minimum.
-
Sessions in Golang
github.com/alexedwards/scs is quite pleasant to work with.
-
What are the best alternatives to gorilla session?
This one works ok: https://github.com/alexedwards/scs
-
Standard library, Fiber, Iris, Gin, ... where does one even begin with writing production web apps in Go?
I'm a big fan of Alex Edwards' book "Let's Go", and he uses his own Sessions library: https://github.com/alexedwards/scs which you can find in the Authentication section of Awesome Go. So that's a great source as well.
-
How do you do Authentication?
Server side sessions using alexedwards/scs.
-
REST API + limit number of seats
Unfortunately I haven't written a cookie/session based auth flow in Golang before so can't recommend any libraries. A quick google led me to https://github.com/alexedwards/scs which may or may not be helpful.
securecookie
Posts with mentions or reviews of securecookie.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-05.
-
How do you do Authentication?
I currently use a secure cookie package. This allows to safely store information in the cookie and authenticate the cookie. For csrf protection, I encrypt the random check value stored in a hidden field of the form inside the cookie. It may then be used to authenticate websocket opening.
-
pkgs for pg, view engine and img edit?
jackc for PostgreSQL. I use chmike for secure cookie and a jwt/redis lib I found in a tutorial
What are some alternatives?
When comparing scs and securecookie you can also consider the following projects:
go-guardian - Go-Guardian is a golang library that provides a simple, clean, and idiomatic way to create powerful modern API and web authentication.
cookiestxt - cookiestxt implement parser of cookies txt format
otpgen - Library to generate TOTP/HOTP codes
sessiongate-go - A driver for the SessionGate Redis module - easy session management using the Go language.
sjwt - Simple JWT Golang
paseto - Platform-Agnostic Security Tokens implementation in GO (Golang)
go-email-normalizer - Golang library for providing a canonical representation of email address.
jeff - 🍍Jeff provides the simplest way to manage web sessions in Go.