diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2018-05-21 14:34:20 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-05-21 15:34:20 +0300 |
commit | 3f3383dc0a0de9d6a0444bba71603e5c5d248f0b (patch) | |
tree | 34f4f2ad9ce686d265c2f81e6a3e1b02b92e8e22 /vendor/github.com/yohcop | |
parent | d7fd9bf7bb25e7537aef335a0927c216aed881a3 (diff) | |
download | gitea-3f3383dc0a0de9d6a0444bba71603e5c5d248f0b.tar.gz gitea-3f3383dc0a0de9d6a0444bba71603e5c5d248f0b.zip |
Migrate to dep (#3972)
* Update makefile to use dep
* Migrate to dep
* Fix some deps
* Try to find a better version for golang.org/x/net
* Try to find a better version for golang.org/x/oauth2
Diffstat (limited to 'vendor/github.com/yohcop')
-rw-r--r-- | vendor/github.com/yohcop/openid-go/README.md | 38 | ||||
-rw-r--r-- | vendor/github.com/yohcop/openid-go/html_discovery.go | 2 |
2 files changed, 0 insertions, 40 deletions
diff --git a/vendor/github.com/yohcop/openid-go/README.md b/vendor/github.com/yohcop/openid-go/README.md deleted file mode 100644 index f617126d2e..0000000000 --- a/vendor/github.com/yohcop/openid-go/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# openid.go - -This is a consumer (Relying party) implementation of OpenId 2.0, -written in Go. - - go get -u github.com/yohcop/openid-go - -[![Build Status](https://travis-ci.org/yohcop/openid-go.svg?branch=master)](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). diff --git a/vendor/github.com/yohcop/openid-go/html_discovery.go b/vendor/github.com/yohcop/openid-go/html_discovery.go index 145e6c4d9f..c2468321d2 100644 --- a/vendor/github.com/yohcop/openid-go/html_discovery.go +++ b/vendor/github.com/yohcop/openid-go/html_discovery.go @@ -52,8 +52,6 @@ func findProviderFromHeadLink(input io.Reader) (opEndpoint, opLocalID string, er provider = true } else if attr.Val == "openid2.local_id" { localID = true - } else if attr.Val == "openid.server" { - provider = true } } else if attr.Key == "href" { href = attr.Val |