mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Use Go1.11 module (#5743)
* Migrate to go modules * make vendor * Update mvdan.cc/xurls * make vendor * Update code.gitea.io/git * make fmt-check * Update github.com/go-sql-driver/mysql * make vendor
This commit is contained in:
		
							
								
								
									
										14
									
								
								vendor/github.com/yohcop/openid-go/.travis.yml
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								vendor/github.com/yohcop/openid-go/.travis.yml
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| sudo: false | ||||
|  | ||||
| language: go | ||||
|  | ||||
| go: | ||||
|  - 1.3.3 | ||||
|  - 1.4.2 | ||||
|  - 1.5.2 | ||||
|  - 1.6beta2 | ||||
|  | ||||
| # Get deps, build, test, and ensure the code is gofmt'ed. | ||||
| script: | ||||
|  - go test -v ./... | ||||
|  - diff <(gofmt -d .) <("") | ||||
							
								
								
									
										38
									
								
								vendor/github.com/yohcop/openid-go/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								vendor/github.com/yohcop/openid-go/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| # openid.go | ||||
|  | ||||
| This is a consumer (Relying party) implementation of OpenId 2.0, | ||||
| written in Go. | ||||
|  | ||||
|     go get -u github.com/yohcop/openid-go | ||||
|  | ||||
| [](https://travis-ci.org/yohcop/openid-go) | ||||
|  | ||||
| ## Github | ||||
|  | ||||
| Be awesome! Feel free to clone and use according to the licence. | ||||
| If you make a useful change that can benefit others, send a | ||||
| pull request! This ensures that one version has all the good stuff | ||||
| and doesn't fall behind. | ||||
|  | ||||
| ## Code example | ||||
|  | ||||
| See `_example/` for a simple webserver using the openID | ||||
| implementation. Also, read the comment about the NonceStore towards | ||||
| the top of that file. The example must be run for the openid-go | ||||
| directory, like so: | ||||
|  | ||||
|     go run _example/server.go | ||||
|  | ||||
| ## App Engine | ||||
|  | ||||
| In order to use this on Google App Engine, you need to create an instance with a custom `*http.Client` provided by [urlfetch](https://cloud.google.com/appengine/docs/go/urlfetch/). | ||||
|  | ||||
| ```go | ||||
| oid := openid.NewOpenID(urlfetch.Client(appengine.NewContext(r))) | ||||
| oid.RedirectURL(...) | ||||
| oid.Verify(...) | ||||
| ``` | ||||
|  | ||||
| ## License | ||||
|  | ||||
| Distributed under the [Apache v2.0 license](http://www.apache.org/licenses/LICENSE-2.0.html). | ||||
		Reference in New Issue
	
	Block a user