mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	github.com/yohcop/openid-go update to first tagged version (#11357)
This commit is contained in:
		
							
								
								
									
										17
									
								
								vendor/github.com/yohcop/openid-go/.travis.yml
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/yohcop/openid-go/.travis.yml
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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: | ||||
|   | ||||
							
								
								
									
										9
									
								
								vendor/github.com/yohcop/openid-go/README.md
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								vendor/github.com/yohcop/openid-go/README.md
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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
									
								
							
							
						
						
									
										5
									
								
								vendor/github.com/yohcop/openid-go/go.mod
									
									
									
										generated
									
									
										vendored
									
									
										Normal 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
									
								
							
							
						
						
									
										5
									
								
								vendor/github.com/yohcop/openid-go/go.sum
									
									
									
										generated
									
									
										vendored
									
									
										Normal 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= | ||||
							
								
								
									
										2
									
								
								vendor/github.com/yohcop/openid-go/nonce_store.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/yohcop/openid-go/nonce_store.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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:] | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/github.com/yohcop/openid-go/normalizer.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/yohcop/openid-go/normalizer.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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") | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 6543
					6543