From b8c89a5e0f8ae73991d3d0dfe506cbb0112f3a31 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 23 Apr 2019 00:41:08 +0200 Subject: [PATCH] Vendor new dependencies for OIDC Signed-off-by: Knut Ahlers --- Gopkg.lock | 35 + vendor/github.com/coreos/go-oidc/.gitignore | 2 + vendor/github.com/coreos/go-oidc/.travis.yml | 16 + .../github.com/coreos/go-oidc/CONTRIBUTING.md | 71 + vendor/github.com/coreos/go-oidc/DCO | 36 + vendor/github.com/coreos/go-oidc/LICENSE | 202 +++ vendor/github.com/coreos/go-oidc/MAINTAINERS | 2 + vendor/github.com/coreos/go-oidc/NOTICE | 5 + vendor/github.com/coreos/go-oidc/README.md | 72 + .../coreos/go-oidc/code-of-conduct.md | 61 + .../coreos/go-oidc/example/README.md | 21 + .../coreos/go-oidc/example/idtoken/app.go | 92 + .../coreos/go-oidc/example/nonce/app.go | 100 ++ .../coreos/go-oidc/example/userinfo/app.go | 76 + vendor/github.com/coreos/go-oidc/jose.go | 20 + vendor/github.com/coreos/go-oidc/jwks.go | 228 +++ vendor/github.com/coreos/go-oidc/jwks_test.go | 250 +++ vendor/github.com/coreos/go-oidc/oidc.go | 374 +++++ vendor/github.com/coreos/go-oidc/oidc_test.go | 95 ++ vendor/github.com/coreos/go-oidc/test | 16 + vendor/github.com/coreos/go-oidc/verify.go | 243 +++ .../github.com/coreos/go-oidc/verify_test.go | 272 +++ .../pquerna/cachecontrol/.travis.yml | 10 + .../github.com/pquerna/cachecontrol/LICENSE | 202 +++ .../github.com/pquerna/cachecontrol/README.md | 107 ++ vendor/github.com/pquerna/cachecontrol/api.go | 48 + .../pquerna/cachecontrol/api_test.go | 111 ++ .../cachecontrol/cacheobject/directive.go | 546 ++++++ .../cacheobject/directive_test.go | 454 +++++ .../pquerna/cachecontrol/cacheobject/lex.go | 93 ++ .../cachecontrol/cacheobject/object.go | 387 +++++ .../cacheobject/object_http_test.go | 91 + .../cachecontrol/cacheobject/object_test.go | 394 +++++ .../cachecontrol/cacheobject/reasons.go | 95 ++ .../cachecontrol/cacheobject/warning.go | 107 ++ vendor/github.com/pquerna/cachecontrol/doc.go | 25 + .../cachecontrol/examples/example-com.go | 21 + .../examples/lowlevel/ll-example-com.go | 48 + .../square/go-jose.v2/.gitcookies.sh.enc | 1 + vendor/gopkg.in/square/go-jose.v2/.gitignore | 7 + vendor/gopkg.in/square/go-jose.v2/.travis.yml | 46 + .../gopkg.in/square/go-jose.v2/BUG-BOUNTY.md | 10 + .../square/go-jose.v2/CONTRIBUTING.md | 14 + vendor/gopkg.in/square/go-jose.v2/LICENSE | 202 +++ vendor/gopkg.in/square/go-jose.v2/README.md | 118 ++ .../gopkg.in/square/go-jose.v2/asymmetric.go | 592 +++++++ .../square/go-jose.v2/asymmetric_test.go | 388 +++++ .../square/go-jose.v2/cipher/cbc_hmac.go | 196 +++ .../square/go-jose.v2/cipher/cbc_hmac_test.go | 498 ++++++ .../square/go-jose.v2/cipher/concat_kdf.go | 75 + .../go-jose.v2/cipher/concat_kdf_test.go | 150 ++ .../square/go-jose.v2/cipher/ecdh_es.go | 62 + .../square/go-jose.v2/cipher/ecdh_es_test.go | 115 ++ .../square/go-jose.v2/cipher/key_wrap.go | 109 ++ .../square/go-jose.v2/cipher/key_wrap_test.go | 133 ++ vendor/gopkg.in/square/go-jose.v2/crypter.go | 535 ++++++ .../square/go-jose.v2/crypter_test.go | 1070 ++++++++++++ .../go-jose.v2/cryptosigner/cryptosigner.go | 138 ++ .../cryptosigner/cryptosigner_test.go | 137 ++ vendor/gopkg.in/square/go-jose.v2/doc.go | 27 + vendor/gopkg.in/square/go-jose.v2/doc_test.go | 201 +++ vendor/gopkg.in/square/go-jose.v2/encoding.go | 179 ++ .../square/go-jose.v2/encoding_test.go | 122 ++ .../square/go-jose.v2/jose-util/README.md | 59 + .../square/go-jose.v2/jose-util/ec.key | 6 + .../square/go-jose.v2/jose-util/ec.pub | 5 + .../square/go-jose.v2/jose-util/jose-util.t | 94 ++ .../square/go-jose.v2/jose-util/main.go | 189 +++ .../go-jose.v2/jose-util/test-keys/ecdh.key | 6 + .../go-jose.v2/jose-util/test-keys/ecdh.pub | 5 + .../go-jose.v2/jose-util/test-keys/rsa.key | 27 + .../go-jose.v2/jose-util/test-keys/rsa.pub | 9 + .../square/go-jose.v2/jose-util/utils.go | 101 ++ .../gopkg.in/square/go-jose.v2/json/LICENSE | 27 + .../gopkg.in/square/go-jose.v2/json/README.md | 13 + .../square/go-jose.v2/json/bench_test.go | 223 +++ .../gopkg.in/square/go-jose.v2/json/decode.go | 1183 +++++++++++++ .../square/go-jose.v2/json/decode_test.go | 1474 +++++++++++++++++ .../gopkg.in/square/go-jose.v2/json/encode.go | 1197 +++++++++++++ .../square/go-jose.v2/json/encode_test.go | 538 ++++++ .../gopkg.in/square/go-jose.v2/json/indent.go | 141 ++ .../square/go-jose.v2/json/number_test.go | 133 ++ .../square/go-jose.v2/json/scanner.go | 623 +++++++ .../square/go-jose.v2/json/scanner_test.go | 316 ++++ .../gopkg.in/square/go-jose.v2/json/stream.go | 480 ++++++ .../square/go-jose.v2/json/stream_test.go | 354 ++++ .../square/go-jose.v2/json/tagkey_test.go | 115 ++ .../gopkg.in/square/go-jose.v2/json/tags.go | 44 + .../square/go-jose.v2/json/tags_test.go | 28 + .../go-jose.v2/json/testdata/code.json.gz | Bin 0 -> 120432 bytes vendor/gopkg.in/square/go-jose.v2/jwe.go | 294 ++++ vendor/gopkg.in/square/go-jose.v2/jwe_test.go | 619 +++++++ .../square/go-jose.v2/jwk-keygen/README.md | 35 + .../square/go-jose.v2/jwk-keygen/main.go | 200 +++ vendor/gopkg.in/square/go-jose.v2/jwk.go | 608 +++++++ vendor/gopkg.in/square/go-jose.v2/jwk_test.go | 884 ++++++++++ vendor/gopkg.in/square/go-jose.v2/jws.go | 321 ++++ vendor/gopkg.in/square/go-jose.v2/jws_test.go | 616 +++++++ .../gopkg.in/square/go-jose.v2/jwt/builder.go | 334 ++++ .../square/go-jose.v2/jwt/builder_test.go | 507 ++++++ .../gopkg.in/square/go-jose.v2/jwt/claims.go | 120 ++ .../square/go-jose.v2/jwt/claims_test.go | 115 ++ vendor/gopkg.in/square/go-jose.v2/jwt/doc.go | 22 + .../gopkg.in/square/go-jose.v2/jwt/errors.go | 53 + .../square/go-jose.v2/jwt/example_test.go | 340 ++++ vendor/gopkg.in/square/go-jose.v2/jwt/jwt.go | 163 ++ .../square/go-jose.v2/jwt/jwt_test.go | 217 +++ .../square/go-jose.v2/jwt/validation.go | 114 ++ .../square/go-jose.v2/jwt/validation_test.go | 167 ++ vendor/gopkg.in/square/go-jose.v2/opaque.go | 83 + .../gopkg.in/square/go-jose.v2/opaque_test.go | 192 +++ vendor/gopkg.in/square/go-jose.v2/shared.go | 499 ++++++ vendor/gopkg.in/square/go-jose.v2/signing.go | 389 +++++ .../square/go-jose.v2/signing_test.go | 523 ++++++ .../gopkg.in/square/go-jose.v2/symmetric.go | 482 ++++++ .../square/go-jose.v2/symmetric_test.go | 196 +++ .../gopkg.in/square/go-jose.v2/utils_test.go | 80 + 117 files changed, 25716 insertions(+) create mode 100644 vendor/github.com/coreos/go-oidc/.gitignore create mode 100644 vendor/github.com/coreos/go-oidc/.travis.yml create mode 100644 vendor/github.com/coreos/go-oidc/CONTRIBUTING.md create mode 100644 vendor/github.com/coreos/go-oidc/DCO create mode 100644 vendor/github.com/coreos/go-oidc/LICENSE create mode 100644 vendor/github.com/coreos/go-oidc/MAINTAINERS create mode 100644 vendor/github.com/coreos/go-oidc/NOTICE create mode 100644 vendor/github.com/coreos/go-oidc/README.md create mode 100644 vendor/github.com/coreos/go-oidc/code-of-conduct.md create mode 100644 vendor/github.com/coreos/go-oidc/example/README.md create mode 100644 vendor/github.com/coreos/go-oidc/example/idtoken/app.go create mode 100644 vendor/github.com/coreos/go-oidc/example/nonce/app.go create mode 100644 vendor/github.com/coreos/go-oidc/example/userinfo/app.go create mode 100644 vendor/github.com/coreos/go-oidc/jose.go create mode 100644 vendor/github.com/coreos/go-oidc/jwks.go create mode 100644 vendor/github.com/coreos/go-oidc/jwks_test.go create mode 100644 vendor/github.com/coreos/go-oidc/oidc.go create mode 100644 vendor/github.com/coreos/go-oidc/oidc_test.go create mode 100755 vendor/github.com/coreos/go-oidc/test create mode 100644 vendor/github.com/coreos/go-oidc/verify.go create mode 100644 vendor/github.com/coreos/go-oidc/verify_test.go create mode 100644 vendor/github.com/pquerna/cachecontrol/.travis.yml create mode 100644 vendor/github.com/pquerna/cachecontrol/LICENSE create mode 100644 vendor/github.com/pquerna/cachecontrol/README.md create mode 100644 vendor/github.com/pquerna/cachecontrol/api.go create mode 100644 vendor/github.com/pquerna/cachecontrol/api_test.go create mode 100644 vendor/github.com/pquerna/cachecontrol/cacheobject/directive.go create mode 100644 vendor/github.com/pquerna/cachecontrol/cacheobject/directive_test.go create mode 100644 vendor/github.com/pquerna/cachecontrol/cacheobject/lex.go create mode 100644 vendor/github.com/pquerna/cachecontrol/cacheobject/object.go create mode 100644 vendor/github.com/pquerna/cachecontrol/cacheobject/object_http_test.go create mode 100644 vendor/github.com/pquerna/cachecontrol/cacheobject/object_test.go create mode 100644 vendor/github.com/pquerna/cachecontrol/cacheobject/reasons.go create mode 100644 vendor/github.com/pquerna/cachecontrol/cacheobject/warning.go create mode 100644 vendor/github.com/pquerna/cachecontrol/doc.go create mode 100644 vendor/github.com/pquerna/cachecontrol/examples/example-com.go create mode 100644 vendor/github.com/pquerna/cachecontrol/examples/lowlevel/ll-example-com.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/.gitcookies.sh.enc create mode 100644 vendor/gopkg.in/square/go-jose.v2/.gitignore create mode 100644 vendor/gopkg.in/square/go-jose.v2/.travis.yml create mode 100644 vendor/gopkg.in/square/go-jose.v2/BUG-BOUNTY.md create mode 100644 vendor/gopkg.in/square/go-jose.v2/CONTRIBUTING.md create mode 100644 vendor/gopkg.in/square/go-jose.v2/LICENSE create mode 100644 vendor/gopkg.in/square/go-jose.v2/README.md create mode 100644 vendor/gopkg.in/square/go-jose.v2/asymmetric.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/asymmetric_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/cipher/cbc_hmac.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/cipher/cbc_hmac_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/cipher/concat_kdf.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/cipher/concat_kdf_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/cipher/ecdh_es.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/cipher/ecdh_es_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/cipher/key_wrap.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/cipher/key_wrap_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/crypter.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/crypter_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/cryptosigner/cryptosigner.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/cryptosigner/cryptosigner_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/doc.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/doc_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/encoding.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/encoding_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jose-util/README.md create mode 100644 vendor/gopkg.in/square/go-jose.v2/jose-util/ec.key create mode 100644 vendor/gopkg.in/square/go-jose.v2/jose-util/ec.pub create mode 100644 vendor/gopkg.in/square/go-jose.v2/jose-util/jose-util.t create mode 100644 vendor/gopkg.in/square/go-jose.v2/jose-util/main.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jose-util/test-keys/ecdh.key create mode 100644 vendor/gopkg.in/square/go-jose.v2/jose-util/test-keys/ecdh.pub create mode 100644 vendor/gopkg.in/square/go-jose.v2/jose-util/test-keys/rsa.key create mode 100644 vendor/gopkg.in/square/go-jose.v2/jose-util/test-keys/rsa.pub create mode 100644 vendor/gopkg.in/square/go-jose.v2/jose-util/utils.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/LICENSE create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/README.md create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/bench_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/decode.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/decode_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/encode.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/encode_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/indent.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/number_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/scanner.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/scanner_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/stream.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/stream_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/tagkey_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/tags.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/tags_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/json/testdata/code.json.gz create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwe.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwe_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwk-keygen/README.md create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwk-keygen/main.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwk.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwk_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jws.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jws_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwt/builder.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwt/builder_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwt/claims.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwt/claims_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwt/doc.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwt/errors.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwt/example_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwt/jwt.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwt/jwt_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwt/validation.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/jwt/validation_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/opaque.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/opaque_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/shared.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/signing.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/signing_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/symmetric.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/symmetric_test.go create mode 100644 vendor/gopkg.in/square/go-jose.v2/utils_test.go diff --git a/Gopkg.lock b/Gopkg.lock index 62540b4..4d90cb8 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -45,6 +45,14 @@ revision = "3cfea5ab600ae37946be2b763b8ec2c1cf2d272d" version = "v1.0.0" +[[projects]] + digest = "1:d8ee1b165eb7f4fd9ada718e1e7eeb0bc1fd462592d0bd823df694443f448681" + name = "github.com/coreos/go-oidc" + packages = ["."] + pruneopts = "" + revision = "1180514eaf4d9f38d0d19eef639a1d695e066e72" + version = "v2.0.0" + [[projects]] branch = "master" digest = "1:f65bcfc1efab621eaf5df43869dd1aee399a298c299423c08b96a3b037437c48" @@ -142,6 +150,17 @@ revision = "ba968bfe8b2f7e042a574c888954fccecfa385b4" version = "v0.8.1" +[[projects]] + branch = "master" + digest = "1:de5481dda0c081b66450e391bbb1a5c4435b13e3c0bbf0133ba1a5baeda7b7af" + name = "github.com/pquerna/cachecontrol" + packages = [ + ".", + "cacheobject", + ] + pruneopts = "" + revision = "1555304b9b35fdd2b425bccf1a5613677705e7d0" + [[projects]] digest = "1:d8c398c75a666d415196ba289402c3f52b595d8cede451a9e57278354e327a93" name = "github.com/pquerna/otp" @@ -202,6 +221,9 @@ packages = [ "bcrypt", "blowfish", + "ed25519", + "ed25519/internal/edwards25519", + "pbkdf2", ] pruneopts = "" revision = "df01cb2cc480549d72034218dd98bf97671450ac" @@ -370,6 +392,18 @@ revision = "bb7a9ca6e4fbc2129e3db588a34bc970ffe811a9" version = "v2.5.1" +[[projects]] + digest = "1:40cf02345bfa29fb217cfe0767a9416d99569d4ff21dbb1fd3378ef10682549c" + name = "gopkg.in/square/go-jose.v2" + packages = [ + ".", + "cipher", + "json", + ] + pruneopts = "" + revision = "730df5f748271903322feb182be83b43ebbbe27d" + version = "v2.3.1" + [[projects]] branch = "v2" digest = "1:bf922c860f64bb6372daa82bb9c1e8ed144e97ac7587efa80d08b4e98737e9ea" @@ -393,6 +427,7 @@ "github.com/GeertJohan/yubigo", "github.com/Luzifer/go_helpers/str", "github.com/Luzifer/rconfig", + "github.com/coreos/go-oidc", "github.com/duosecurity/duo_api_golang", "github.com/duosecurity/duo_api_golang/authapi", "github.com/flosch/pongo2", diff --git a/vendor/github.com/coreos/go-oidc/.gitignore b/vendor/github.com/coreos/go-oidc/.gitignore new file mode 100644 index 0000000..c96f2f4 --- /dev/null +++ b/vendor/github.com/coreos/go-oidc/.gitignore @@ -0,0 +1,2 @@ +/bin +/gopath diff --git a/vendor/github.com/coreos/go-oidc/.travis.yml b/vendor/github.com/coreos/go-oidc/.travis.yml new file mode 100644 index 0000000..f2f3c9c --- /dev/null +++ b/vendor/github.com/coreos/go-oidc/.travis.yml @@ -0,0 +1,16 @@ +language: go + +go: + - 1.7.5 + - 1.8 + +install: + - go get -v -t github.com/coreos/go-oidc/... + - go get golang.org/x/tools/cmd/cover + - go get github.com/golang/lint/golint + +script: + - ./test + +notifications: + email: false diff --git a/vendor/github.com/coreos/go-oidc/CONTRIBUTING.md b/vendor/github.com/coreos/go-oidc/CONTRIBUTING.md new file mode 100644 index 0000000..6662073 --- /dev/null +++ b/vendor/github.com/coreos/go-oidc/CONTRIBUTING.md @@ -0,0 +1,71 @@ +# How to Contribute + +CoreOS projects are [Apache 2.0 licensed](LICENSE) and accept contributions via +GitHub pull requests. This document outlines some of the conventions on +development workflow, commit message formatting, contact points and other +resources to make it easier to get your contribution accepted. + +# Certificate of Origin + +By contributing to this project you agree to the Developer Certificate of +Origin (DCO). This document was created by the Linux Kernel community and is a +simple statement that you, as a contributor, have the legal right to make the +contribution. See the [DCO](DCO) file for details. + +# Email and Chat + +The project currently uses the general CoreOS email list and IRC channel: +- Email: [coreos-dev](https://groups.google.com/forum/#!forum/coreos-dev) +- IRC: #[coreos](irc://irc.freenode.org:6667/#coreos) IRC channel on freenode.org + +Please avoid emailing maintainers found in the MAINTAINERS file directly. They +are very busy and read the mailing lists. + +## Getting Started + +- Fork the repository on GitHub +- Read the [README](README.md) for build and test instructions +- Play with the project, submit bugs, submit patches! + +## Contribution Flow + +This is a rough outline of what a contributor's workflow looks like: + +- Create a topic branch from where you want to base your work (usually master). +- Make commits of logical units. +- Make sure your commit messages are in the proper format (see below). +- Push your changes to a topic branch in your fork of the repository. +- Make sure the tests pass, and add any new tests as appropriate. +- Submit a pull request to the original repository. + +Thanks for your contributions! + +### Format of the Commit Message + +We follow a rough convention for commit messages that is designed to answer two +questions: what changed and why. The subject line should feature the what and +the body of the commit should describe the why. + +``` +scripts: add the test-cluster command + +this uses tmux to setup a test cluster that you can easily kill and +start for debugging. + +Fixes #38 +``` + +The format can be described more formally as follows: + +``` +: + + + +