Our great sponsors
oauth2 | go-oidc | |
---|---|---|
8 | 9 | |
5,135 | 1,782 | |
1.2% | 3.1% | |
7.4 | 5.6 | |
4 days ago | 14 days ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
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.
oauth2
-
How to Authenticate a CLI Using OAuth and GitHub in Golang
The guide covers setting up GitHub, using the golang.org/x/oauth2 package, and handling OAuth authentication. The code snippets are easy to follow and can be modified to fit your project's needs.
-
Authentication for HTMX app
I personally use golang.org/x/oauth2 to handle OAuth in my app, so I'll use that for this example.
-
Retrieving authorization JWT from Go CLI program.
I mean using the OAuth2 client library that's maintained as part of the Go project.
-
What do if no progress in MR about year?
My wife sent MR into golang oauth2 library https://github.com/golang/oauth2/pull/450
-
Looking for a reliable OAuth2 client implementation
Hmm, this might be a relevant issue: https://github.com/golang/oauth2/issues/128 . On the face of it, it looks like https://github.com/coreos/go-oidc is a more thorough implementation...(?)
-
Handling authentication in Transport - is it good or bad?
Handling auth in a Transport is a common pattern, that's what x/oauth2 does for example: https://github.com/golang/oauth2/blob/master/transport.go#L20
-
Gopher Gold #20 - Wed Nov 18 2020
golang/oauth2 (Go): Go OAuth2
go-oidc
-
GO - Docker ask certificate on K8S container
I use the following code with this lib
-
Where to validate JWT tokens
If oidc supported, check out https://github.com/coreos/go-oidc You can instantiate a oidc verifier by passing the oidc-configuration endpoint, set the remote public key set by passing the jwks endpoint. Then call Verify func. As long as the public key matches the private key used to sign the JWT (3rd part), you'll verify it and get the claim back, then unmarshall that claim to some struct and you're good to go.
-
My take on document archiving: Virtualpaper
This looks so far like some of the nicest ones. I'm sold if you add the possibility for OpenID connect authentication that can be configured via env variables to the container.
-
Echo doesn't set cookies
I did everything according to go-oidc examples: https://github.com/coreos/go-oidc/blob/v3/example/idtoken/app.go
-
How do you implement OIDC Code flow in go?
go-oidc: github.com/coreos/go-oidc
-
go-oidc VS oidc - a user suggested alternative
2 projects | 26 Apr 2022
-
Retrieving authorization JWT from Go CLI program.
If you actually have OpenID Connect then there are some good libraries to use for token management in that case. Iirc I prefer https://github.com/coreos/go-oidc, since it supports auto discovery and key rotation etc.
-
What are your favorite packages to use?
oklog/ulid to generate IDs. coreos/go-oidc for validating JWTs I get from auth. google/go-cmp for comparing structs in tests (unless the project is already using Testify). spf13/pflag because life's too short for Go's flag handling. getkin/kin-openapi for validating reqests/responses against my OpenAPI spec (in tests).
-
Looking for a reliable OAuth2 client implementation
Hmm, this might be a relevant issue: https://github.com/golang/oauth2/issues/128 . On the face of it, it looks like https://github.com/coreos/go-oidc is a more thorough implementation...(?)
What are some alternatives?
authelia - The Single Sign-On Multi-Factor portal for web apps
oidc - Easy to use OpenID Connect client and server library written for Go and certified by the OpenID Foundation
casbin - An authorization library that supports access control models like ACL, RBAC, ABAC in Golang: https://discord.gg/S5UjpzGZjN
chi - lightweight, idiomatic and composable router for building Go HTTP services
goth - Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
jwt-go - ARCHIVE - Golang implementation of JSON Web Tokens (JWT). This project is now maintained at:
gopherjs - A compiler from Go to JavaScript for running Go code in a browser
webauthn - Go package for easy WebAuthn integration
pgx - PostgreSQL driver and toolkit for Go
k6 - A modern load testing tool, using Go and JavaScript - https://k6.io
pflag - Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.