kenmyzhang / single-sign-on Goto Github PK
View Code? Open in Web Editor NEW基于Go语言实现的单点登录系统(sso) 支持手机号码+验证码、邮箱+验证码、微信第三方授权三种方式注册 支持手机号码、用户名、邮箱号码、微信登录 支持手机和邮箱找回密码 支持阿里云通信和互亿无线的短信验证码服务
Home Page: https://github.com/KenmyZhang/single-sign-on
基于Go语言实现的单点登录系统(sso) 支持手机号码+验证码、邮箱+验证码、微信第三方授权三种方式注册 支持手机号码、用户名、邮箱号码、微信登录 支持手机和邮箱找回密码 支持阿里云通信和互亿无线的短信验证码服务
Home Page: https://github.com/KenmyZhang/single-sign-on
[2018/12/29 15:07:14 CST] [EROR] api.context.log.error%!(EXTRA string=/sso/users/email/signup, string=VerifiedCode, int=500, string=mjgzs8b9stre9m8qwgxyq5dync, string=, string=127.0.0.1, string=api.user.verified_code.get_token.app_error, string=GetTokenByExtra: api.user.get_token_by_extra.app_error, SqlTokenStore.GetByExtra: store.sql_recover.get_by_extra.app_error, sql: no rows in result set)
ssouser:ssouser-password@tcp(mysqlhost:3306)/sso?charset=utf8mb4,utf8
请问这个在实际项目中使用了吗,稳定不?
> make build
Build Linux amd64
env GOOS=linux GOARCH=amd64 go install -ldflags "-X github.com/KenmyZhang/single-sign-on/model.BuildNumber=dev -X 'github.com/KenmyZhang/single-sign-on/model.BuildDate=2022年12月 4日 星期日 13时20分03秒 UTC' -X github.com/KenmyZhang/single-sign-on/model.BuildHash=248b55e2f6447028c3b6fbb85d27eb6d78980ff9" ./cmd/single-sign-on
# github.com/KenmyZhang/single-sign-on/sqlStore
sqlStore/sql_supplier.go:140:97: unknown field 'QueryTimeout' in struct literal of type gorp.DbMap
sqlStore/sql_supplier.go:142:133: unknown field 'QueryTimeout' in struct literal of type gorp.DbMap
sqlStore/sql_supplier.go:316:28: ss.GetMaster().ExecNoTimeout undefined (type *gorp.DbMap has no field or method ExecNoTimeout)
sqlStore/sql_supplier.go:339:27: ss.GetMaster().ExecNoTimeout undefined (type *gorp.DbMap has no field or method ExecNoTimeout)
sqlStore/sql_supplier.go:354:27: ss.GetMaster().ExecNoTimeout undefined (type *gorp.DbMap has no field or method ExecNoTimeout)
sqlStore/sql_supplier.go:371:27: ss.GetMaster().ExecNoTimeout undefined (type *gorp.DbMap has no field or method ExecNoTimeout)
sqlStore/sql_supplier.go:410:27: ss.GetMaster().ExecNoTimeout undefined (type *gorp.DbMap has no field or method ExecNoTimeout)
sqlStore/sql_supplier.go:459:27: ss.GetMaster().ExecNoTimeout undefined (type *gorp.DbMap has no field or method ExecNoTimeout)
sqlStore/sql_supplier.go:489:27: ss.GetMaster().ExecNoTimeout undefined (type *gorp.DbMap has no field or method ExecNoTimeout)
make: *** [build-linux] Error 2
// go.mod
module github.com/KenmyZhang/single-sign-on
go 1.19
require (
github.com/NYTimes/gziphandler v1.1.1
github.com/alecthomas/log4go v0.0.0-20180109082532-d146e6b86faa
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/disintegration/imaging v1.6.2
github.com/fsnotify/fsnotify v1.6.0
github.com/go-sql-driver/mysql v1.7.0
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
github.com/gorilla/handlers v1.5.1
github.com/gorilla/mux v1.8.0
github.com/lib/pq v1.10.7
github.com/mattermost/gorp v2.0.0+incompatible
github.com/mssola/user_agent v0.5.3
github.com/nicksnyder/go-i18n v1.10.1
github.com/pborman/uuid v1.2.1
github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd
github.com/spf13/cobra v1.6.1
github.com/spf13/viper v1.14.0
github.com/tylerb/graceful v1.2.15
golang.org/x/crypto v0.3.0
golang.org/x/image v0.1.0
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22
)
require (
github.com/felixge/httpsnoop v1.0.1 // indirect
github.com/go-gorp/gorp v2.2.0+incompatible // indirect
github.com/google/uuid v1.1.2 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mattn/go-sqlite3 v1.14.16 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.24.1 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
github.com/spf13/afero v1.9.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.4.1 // indirect
github.com/ziutek/mymysql v1.5.4 // indirect
golang.org/x/sys v0.2.0 // indirect
golang.org/x/text v0.4.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.