没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
chartmuseum / auth Go库,用于生成 JWT令牌,授权HTTP请求等。 如何使用 生成JWT令牌(示例) 克隆此go run testcmd/getjwt/main.go并运行go run testcmd/getjwt/main.go来运行此示例 package main import ( "fmt" "time" cmAuth "github.com/chartmuseum/auth" ) func main () { // This should be the private key associated with the public key used // in ChartMuseum server configuration (server.pem) cmTokenGenerator , err := cmAuth . NewTokenGener
资源推荐
资源详情
资源评论
收起资源包目录
auth-main.zip (19个子文件)
auth-main
.gitignore 264B
go.mod 172B
Makefile 303B
token_test.go 3KB
testcmd
authorizer
main.go 2KB
getjwt
main.go 1KB
decodejwt
main.go 1KB
LICENSE 11KB
go.sum 1KB
testdata
server.key 2KB
server.pem 1KB
.github
workflows
build.yml 552B
build-pr.yml 563B
dependabot.yml 109B
README.md 7KB
util.go 3KB
token.go 3KB
authorization_test.go 15KB
authorization.go 5KB
共 19 条
- 1
资源评论
国服第一奶妈
- 粉丝: 27
- 资源: 4504
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功