github.com/yohcop/openid-go update to first tagged version (#11357)

This commit is contained in:
6543 2020-05-10 10:53:04 +02:00 committed by GitHub
parent fdf750e4d4
commit dbb74978f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 42 additions and 14 deletions

View file

@ -3,10 +3,19 @@ sudo: false
language: go
go:
- 1.3.3
- 1.4.2
- 1.5.2
- 1.6beta2
- 1.3.x
- 1.4.x
- 1.5.x
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
env:
- GO111MODULE=on
# Get deps, build, test, and ensure the code is gofmt'ed.
script:

View file

@ -36,3 +36,12 @@ oid.Verify(...)
## License
Distributed under the [Apache v2.0 license](http://www.apache.org/licenses/LICENSE-2.0.html).
## Libraries
Here is a set of libraries I found on GitHub that could make using this library easier depending on your backends. I haven't tested them, this list is for reference only, and in no particular order:
- [Gacnt/myopenid](https://github.com/Gacnt/myopenid) "A Yohcop-Openid Nonce/Discovery storage replacement", using MySQL.
- [Gacnt/sqlxid](https://github.com/Gacnt/sqlxid) "An SQLX Adapter for Nonce / Discovery Cache store"
- [Gacnt/gormid](https://github.com/Gacnt/gormid) "Use GORM (Go Object Relational Mapping) to store OpenID DiscoveryCache / Nonce in a database"
- [hectorj/mysqlOpenID](https://github.com/hectorj/mysqlOpenID) "MySQL OpenID is a package to replace the in memory storage of discoveryCache and nonceStore."

5
vendor/github.com/yohcop/openid-go/go.mod generated vendored Normal file
View file

@ -0,0 +1,5 @@
module github.com/yohcop/openid-go
go 1.3
require golang.org/x/net v0.0.0-20190522155817-f3200d17e092

5
vendor/github.com/yohcop/openid-go/go.sum generated vendored Normal file
View file

@ -0,0 +1,5 @@
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20190522155817-f3200d17e092 h1:4QSRKanuywn15aTZvI/mIDEgPQpswuFndXpOj3rKEco=
golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

View file

@ -55,7 +55,7 @@ func (d *SimpleNonceStore) Accept(endpoint, nonce string) error {
now := time.Now()
diff := now.Sub(ts)
if diff > *maxNonceAge {
return fmt.Errorf("Nonce too old: %ds", diff.Seconds())
return fmt.Errorf("Nonce too old: %.2fs", diff.Seconds())
}
s := nonce[20:]

View file

@ -25,7 +25,7 @@ func Normalize(id string) (string, error) {
// Global Context Symbol ("=", "@", "+", "$", "!") or "(", as
// defined in Section 2.2.1 of [XRI_Syntax_2.0], then the input
// SHOULD be treated as an XRI.
if b := id[0]; b == '=' || b == '@' || b == '+' || b == '$' || b == '!' {
if b := id[0]; b == '=' || b == '@' || b == '+' || b == '$' || b == '!' || b == '(' {
return id, errors.New("XRI identifiers not supported")
}

4
vendor/modules.txt vendored
View file

@ -645,7 +645,7 @@ github.com/willf/bitset
github.com/xanzy/go-gitlab
# github.com/xanzy/ssh-agent v0.2.1
github.com/xanzy/ssh-agent
# github.com/yohcop/openid-go v0.0.0-20160914080427-2c050d2dae53
# github.com/yohcop/openid-go v1.0.0
## explicit
github.com/yohcop/openid-go
# github.com/yuin/goldmark v1.1.25
@ -702,7 +702,7 @@ golang.org/x/crypto/ssh/knownhosts
# golang.org/x/mod v0.2.0
golang.org/x/mod/module
golang.org/x/mod/semver
# golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
# golang.org/x/net v0.0.0-20200506145744-7e3656a0809f
## explicit
golang.org/x/net/context
golang.org/x/net/context/ctxhttp