有职网

Go代码选择:Authentication and OAut(身份验证和OAuth)

实现身份验证方案的库。

authboss (https://www.youzhijob.com/volatiletech/authboss) 用于网络的模块化身份验证系统。它试图尽可能地消除样板文件和“困难的东西”,这样每次你在 Go 中启动一个新的 Web 项目时,你都可以插入它、配置它并开始构建你的应用程序,而不必每次都构建一个应用程序。认证系统。 branca(https://www.youzhijob.com/essentialkaos/branca) Golang 1.15+ [规范实现(https://www.youzhijob.com/tuupola/branca-spec) 的 branca 令牌。 casbin(https://www.youzhijob.com/hsluoyz/casbin)是一个授权库,支持ACL、RBAC、ABAC等访问控制模型。 cookiestxt(https://www.youzhijob.com/mengzhuo/cookiestxt)提供了cookies.txt文件格式的解析器。 go-guardian(https://www.youzhijob.com/shaj13/go-guardian) Go-Guardian 是一个 Golang 库,提供了一种简单、清晰和惯用的方式来创建强大的现代 API 和 Web 身份验证,支持 LDAP、Basic、Bearer Token ,以及基于证书的身份验证。 go-jose (https://www.youzhijob.com/go-jose/go-jose) JOSE 工作组的 JSON Web 令牌、JSON Web 签名和 JSON Web 加密规范的相当完整的实现。 gologin(https://www.youzhijob.com/dghubble/gologin) OAuth1 和 OAuth2 身份验证提供程序的可链接处理程序。 Gorbac (https://www.youzhijob.com/mikespook/gorbac) 在 Golang 中提供了一个轻量级的基于角色的访问控制 (RBAC) 实现。 gosession(http://www.youzhijob.com/Kwynto/gosession) 这是 GoLang 中 net/http 的快速会话。这个包可能是会话机制的最佳实现,或者至少它试图成为其中之一。 goth(https://www.youzhijob.com/markbates/goth) 提供了一种简单、清晰且惯用的方式来使用 OAuth 和 OAuth2。开箱即用地支持多个提供商。 jeff(https://www.youzhijob.com/abraithwaite/jeff) 具有可插拔后端的简单、灵活、安全和惯用的 Web 会话管理。 jwt(https://www.youzhijob.com/pascaldekloe/jwt) 轻量级 JSON Web 令牌 (JWT) 库。 jwt(https://www.youzhijob.com/cristalhq/jwt) 为 Go 提供安全、简单、快速的 JSON Web Token。 jwt-auth(https://www.youzhijob.com/adam-hanna/jwt-auth) Golang 具有许多配置选项 httpjwt-go(https://www.youzhijob.com/golang-jwt/jwt) JSON Web 令牌 (JWT) 完整执行。该库支持 JWT 解析和验证,以及 JWT 生成和签名。 keto(https://www.youzhijob.com/ory/keto) “Zanzibar:Google 一致的全球许可系统”的开源 (Go) 实现。提供gRPC、REST API、newSQL和易于使用的细粒度权限语言。支持ACL、RBAC等多种访问模型。 loginsrv (https://www.youzhijob.com/tarent/loginsrv) 用于可插入后端的 JWT 登录微服务(例如 OAuth2 (Github)、htpasswd、osiam)。 oauth2(https://www.youzhijob.com/golang/oauth2) goauth2的继承者。支持 JWT、Google API、Compute Engine 和 App Engine 的通用 OAuth 2.0 包。 osin(https://www.youzhijob.com/openshift/osin) Golang OAuth2 服务器库。 otpgen(https://www.youzhijob.com/grijul/otpgen) 用于生成 TOTP/HOTP 代码的库。otpgo (https://www.youzhijob.com/jltorresm/otpgo) 用于 Go 的基于时间的一次性密码 (TOTP) 和基于 HMAC 的一次性密码 (HOTP) 库。 paseto(https://www.youzhijob.com/o1egl/paseto) 平台独立安全令牌 (PSETO) 的 Golang 实现。 requests2(https://www.youzhijob.com/xyproto/permissions2) 用于跟踪用户、登录状态和权限的库。使用安全 cookie 和 bcrypt。 scope(https://www.youzhijob.com/SonicRoshan/scope) Go 中 OAuth2 范围的简单管理。 scs(https://www.youzhijob.com/alexedwards/scs) HTTP 服务器的会话管理器。 securecookie(https://www.youzhijob.com/chmike/securecookie) 高效的安全cookie编码/解码。 session(https://www.youzhijob.com/icza/session) 用于 Web 服务器的 Go 会话管理(包括对 Google App Engine-GAE 的支持)。 session(https://www.youzhijob.com/adam-hanna/sessions) Go http 服务器会话服务,易于使用、高性能且高度可定制。 sessionup(https://www.youzhijob.com/swithek/sessionup) 简单但有效的HTTP会话管理和识别包。 sjwt(https://www.youzhijob.com/brianvoe/sjwt) 简单的 jwt 生成器和解析器。

更多选择,请访问Go Code选择