summaryrefslogtreecommitdiffstats
path: root/vendor/github.com
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-05-10 10:53:04 +0200
committerGitHub <noreply@github.com>2020-05-10 09:53:04 +0100
commitdbb74978f7a4574d237952349437e7ac03764e3b (patch)
tree0d048dc9d8a0e85a84ad9548c354669d3ce9e67c /vendor/github.com
parentfdf750e4d4273620e774d03db087ab0dd4eef8c5 (diff)
downloadgitea-dbb74978f7a4574d237952349437e7ac03764e3b.tar.gz
gitea-dbb74978f7a4574d237952349437e7ac03764e3b.zip
github.com/yohcop/openid-go update to first tagged version (#11357)
Diffstat (limited to 'vendor/github.com')
-rw-r--r--vendor/github.com/yohcop/openid-go/.travis.yml17
-rw-r--r--vendor/github.com/yohcop/openid-go/README.md9
-rw-r--r--vendor/github.com/yohcop/openid-go/go.mod5
-rw-r--r--vendor/github.com/yohcop/openid-go/go.sum5
-rw-r--r--vendor/github.com/yohcop/openid-go/nonce_store.go2
-rw-r--r--vendor/github.com/yohcop/openid-go/normalizer.go2
6 files changed, 34 insertions, 6 deletions
diff --git a/vendor/github.com/yohcop/openid-go/.travis.yml b/vendor/github.com/yohcop/openid-go/.travis.yml
index e0937781cd..71a3e6e295 100644
--- a/vendor/github.com/yohcop/openid-go/.travis.yml
+++ b/vendor/github.com/yohcop/openid-go/.travis.yml
@@ -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:
diff --git a/vendor/github.com/yohcop/openid-go/README.md b/vendor/github.com/yohcop/openid-go/README.md
index f617126d2e..1d1afc6bcd 100644
--- a/vendor/github.com/yohcop/openid-go/README.md
+++ b/vendor/github.com/yohcop/openid-go/README.md
@@ -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."
diff --git a/vendor/github.com/yohcop/openid-go/go.mod b/vendor/github.com/yohcop/openid-go/go.mod
new file mode 100644
index 0000000000..f664bd5d1d
--- /dev/null
+++ b/vendor/github.com/yohcop/openid-go/go.mod
@@ -0,0 +1,5 @@
+module github.com/yohcop/openid-go
+
+go 1.3
+
+require golang.org/x/net v0.0.0-20190522155817-f3200d17e092
diff --git a/vendor/github.com/yohcop/openid-go/go.sum b/vendor/github.com/yohcop/openid-go/go.sum
new file mode 100644
index 0000000000..fedb312249
--- /dev/null
+++ b/vendor/github.com/yohcop/openid-go/go.sum
@@ -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=
diff --git a/vendor/github.com/yohcop/openid-go/nonce_store.go b/vendor/github.com/yohcop/openid-go/nonce_store.go
index 684a1acb0e..3f54acbd15 100644
--- a/vendor/github.com/yohcop/openid-go/nonce_store.go
+++ b/vendor/github.com/yohcop/openid-go/nonce_store.go
@@ -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:]
diff --git a/vendor/github.com/yohcop/openid-go/normalizer.go b/vendor/github.com/yohcop/openid-go/normalizer.go
index 8c7aa34a68..3384143d00 100644
--- a/vendor/github.com/yohcop/openid-go/normalizer.go
+++ b/vendor/github.com/yohcop/openid-go/normalizer.go
@@ -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")
}