Skip to content

Commit

Permalink
fix: add v2 suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Nov 5, 2022
1 parent 8d92030 commit 347a1f0
Show file tree
Hide file tree
Showing 31 changed files with 51 additions and 46 deletions.
9 changes: 5 additions & 4 deletions .schema/openapi/patches/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
- op: replace
path: /tags
value:
- name: oauth2
- name: oAuth2
description: OAuth 2.0
- name: oidc
description: OpenID Connect
- name: jwk
description: JSON Web Keys
- name: consent
description: OAuth 2.0 Consent

- name: wellknown
description: Well-Known Endpoints
- name: metadata
description: Service Metadata
2 changes: 1 addition & 1 deletion client/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (

"github.com/ory/hydra/internal"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/client"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/cliclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/spf13/cobra"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
)

type ContextKey int
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_create_jwks.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/spf13/cobra"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/cmd/cliclient"
"github.com/ory/x/cmdx"
"github.com/ory/x/flagx"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_get_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package cmd
import (
"github.com/spf13/cobra"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/cmd/cliclient"
"github.com/ory/x/cmdx"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_helper_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/pflag"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/cmd/cli"
"github.com/ory/x/flagx"
"github.com/ory/x/pointerx"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_import_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/spf13/cobra"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/cmd/cli"
"github.com/ory/hydra/cmd/cliclient"
"github.com/ory/x/cmdx"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_import_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/tidwall/gjson"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/cmd"
"github.com/ory/x/cmdx"
"github.com/ory/x/pointerx"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_import_jwk.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/gofrs/uuid"
"github.com/spf13/cobra"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/cmd/cli"
"github.com/ory/hydra/cmd/cliclient"
"github.com/ory/x/cmdx"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_revoke_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/cmd/cliclient"
"github.com/ory/x/cmdx"
"github.com/ory/x/flagx"
Expand Down
2 changes: 1 addition & 1 deletion cmd/output_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/ory/x/pointerx"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion cmd/output_introspection.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/ory/x/pointerx"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion cmd/output_jwks.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package cmd
import (
"fmt"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion consent/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/stretchr/testify/require"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/client"
. "github.com/ory/hydra/consent"
)
Expand Down
2 changes: 1 addition & 1 deletion consent/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"

"github.com/ory/x/httprouterx"

Expand Down
2 changes: 1 addition & 1 deletion consent/strategy_default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/http/httptest"
"testing"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"

"github.com/stretchr/testify/require"

Expand Down
2 changes: 1 addition & 1 deletion consent/strategy_logout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

jwtgo "github.com/ory/fosite/token/jwt"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/client"
"github.com/ory/hydra/driver/config"
"github.com/ory/hydra/internal"
Expand Down
2 changes: 1 addition & 1 deletion consent/strategy_oauth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
"github.com/ory/x/urlx"
"github.com/ory/x/uuidx"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/client"
"github.com/ory/hydra/driver/config"
"github.com/ory/hydra/internal"
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ replace (
github.com/oleiade/reflections => github.com/oleiade/reflections v1.0.1
)

replace github.com/ory/hydra-client-go => ./internal/httpclient
replace github.com/ory/hydra-client-go/v2 => ./internal/httpclient

require (
github.com/ThalesIgnite/crypto11 v1.2.4
github.com/bradleyjkemp/cupaloy/v2 v2.6.0
github.com/bxcodec/faker/v3 v3.7.0
github.com/cenkalti/backoff/v3 v3.0.0
github.com/fatih/structs v1.1.0
github.com/go-bindata/go-bindata v3.1.2+incompatible
github.com/go-swagger/go-swagger v0.30.3
Expand Down Expand Up @@ -45,7 +44,7 @@ require (
github.com/ory/go-acc v0.2.8
github.com/ory/graceful v0.1.1
github.com/ory/herodot v0.9.13
github.com/ory/hydra-client-go v1.11.8
github.com/ory/hydra-client-go/v2 v2.0.1
github.com/ory/jsonschema/v3 v3.0.7
github.com/ory/x v0.0.486
github.com/pborman/uuid v1.2.1
Expand Down
4 changes: 1 addition & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b/go.mod h1:obH5gd0Bsq
github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0/go.mod h1:D/8v3kj0zr8ZAKg1AQ6crr+5VwKN5eIywRkfhyM/+dE=
github.com/bxcodec/faker/v3 v3.7.0 h1:qWAFFwcyVS0ukF0UoJju1wBLO0cuPQ7JdVBPggM8kNo=
github.com/bxcodec/faker/v3 v3.7.0/go.mod h1:gF31YgnMSMKgkvl+fyEo1xuSMbEuieyqfeslGYFjneM=
github.com/cenkalti/backoff/v3 v3.0.0 h1:ske+9nBpD9qZsTBoF41nW5L+AIuFBKMeze18XQ3eG1c=
github.com/cenkalti/backoff/v3 v3.0.0/go.mod h1:cIeZDE3IrqwwJl6VUwCN6trj1oXrTS4rc0ij+ULvLYs=
github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4=
github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
Expand Down Expand Up @@ -1534,9 +1532,9 @@ github.com/tomnomnom/linkheader v0.0.0-20180905144013-02ca5825eb80/go.mod h1:iFy
github.com/toqueteos/webbrowser v1.2.0 h1:tVP/gpK69Fx+qMJKsLE7TD8LuGWPnEV71wBN9rrstGQ=
github.com/toqueteos/webbrowser v1.2.0/go.mod h1:XWoZq4cyp9WeUeak7w7LXRUQf1F1ATJMir8RTqb4ayM=
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
github.com/twitchtv/twirp v8.1.1+incompatible/go.mod h1:RRJoFSAmTEh2weEqWtpPE3vFK5YBhA6bqp2l1kfCC5A=
github.com/twmb/murmur3 v1.1.6 h1:mqrRot1BRxm+Yct+vavLMou2/iJt0tNVTTC0QoIjaZg=
github.com/twmb/murmur3 v1.1.6/go.mod h1:Qq/R7NUyOfr65zD+6Q5IHKsJLwP7exErjN6lyyq3OSQ=
github.com/twitchtv/twirp v8.1.1+incompatible/go.mod h1:RRJoFSAmTEh2weEqWtpPE3vFK5YBhA6bqp2l1kfCC5A=
github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o=
github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg=
Expand Down
8 changes: 5 additions & 3 deletions internal/httpclient/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ servers:
- url: /
tags:
- description: OAuth 2.0
name: oauth2
name: oAuth2
- description: OpenID Connect
name: oidc
- description: JSON Web Keys
name: jwk
- description: OAuth 2.0 Consent
name: consent
- description: Well-Known Endpoints
name: wellknown
- description: Service Metadata
name: metadata
paths:
/.well-known/jwks.json:
get:
Expand Down
2 changes: 1 addition & 1 deletion jwk/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/ory/hydra/driver/config"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"

"github.com/ory/hydra/internal"
"github.com/ory/hydra/x"
Expand Down
2 changes: 1 addition & 1 deletion oauth2/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"testing"
"time"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"

"github.com/ory/x/httprouterx"

Expand Down
2 changes: 1 addition & 1 deletion oauth2/introspector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"testing"
"time"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"

"github.com/ory/x/httprouterx"

Expand Down
2 changes: 1 addition & 1 deletion oauth2/oauth2_auth_code_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/ory/x/ioutilx"
"github.com/ory/x/requirex"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"

"github.com/ory/x/httprouterx"

Expand Down
6 changes: 3 additions & 3 deletions oauth2/revocator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import (
"testing"
"time"

"github.com/ory/x/httprouterx"

"github.com/gobuffalo/pop/v6"

"github.com/ory/x/httprouterx"

"github.com/ory/hydra/persistence/sql"
"github.com/ory/x/contextx"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"

"github.com/ory/hydra/internal"

Expand Down
5 changes: 3 additions & 2 deletions oauth2/trust/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import (
"testing"
"time"

"gopkg.in/square/go-jose.v2"

"github.com/ory/x/pointerx"

"github.com/stretchr/testify/assert"
Expand All @@ -23,12 +25,11 @@ import (

"github.com/google/uuid"
"github.com/stretchr/testify/suite"
"gopkg.in/square/go-jose.v2"

"github.com/ory/hydra/driver"
"github.com/ory/hydra/jwk"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/driver/config"
"github.com/ory/hydra/internal"
"github.com/ory/hydra/x"
Expand Down
10 changes: 7 additions & 3 deletions spec/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -3625,7 +3625,7 @@
"tags": [
{
"description": "OAuth 2.0",
"name": "oauth2"
"name": "oAuth2"
},
{
"description": "OpenID Connect",
Expand All @@ -3636,8 +3636,12 @@
"name": "jwk"
},
{
"description": "OAuth 2.0 Consent",
"name": "consent"
"description": "Well-Known Endpoints",
"name": "wellknown"
},
{
"description": "Service Metadata",
"name": "metadata"
}
],
"x-forwarded-proto": "string",
Expand Down
4 changes: 2 additions & 2 deletions test/conformance/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"testing"
"time"

hydrac "github.com/ory/hydra-client-go"
"github.com/cenkalti/backoff"

"github.com/cenkalti/backoff/v3"
hydrac "github.com/ory/hydra-client-go/v2"

"github.com/ory/x/httpx"

Expand Down
2 changes: 1 addition & 1 deletion test/mock-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"strings"
"time"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"

"golang.org/x/oauth2"

Expand Down
2 changes: 1 addition & 1 deletion test/mock-lcp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os"
"strings"

hydra "github.com/ory/hydra-client-go"
hydra "github.com/ory/hydra-client-go/v2"

"github.com/ory/x/pointerx"
"github.com/ory/x/urlx"
Expand Down

0 comments on commit 347a1f0

Please sign in to comment.