Skip to content

Commit

Permalink
upgrade Nerzal/gocloak to v13
Browse files Browse the repository at this point in the history
  • Loading branch information
larox11 committed Jun 19, 2024
1 parent 8265809 commit b49f5be
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"net/url"
"strings"

"github.com/Nerzal/gocloak/v12"
"github.com/Nerzal/gocloak/v13"
"github.com/golang-jwt/jwt/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func TestParseJWT(t *testing.T) {
userContext, err := authorizer.ParseJWT(context.Background(), expiredToken)

assert.ErrorContains(t, err, "validation of token failed")
assert.ErrorContains(t, err, "Token is expired")
assert.ErrorContains(t, err, "token is expired")
assert.Zero(t, userContext)
})

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

"github.com/Nerzal/gocloak/v12"
"github.com/Nerzal/gocloak/v13"
"github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v5"
"github.com/jarcoal/httpmock"
Expand Down
2 changes: 1 addition & 1 deletion auth/jwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"os"
"testing"

"github.com/Nerzal/gocloak/v12"
"github.com/Nerzal/gocloak/v13"
"github.com/golang-jwt/jwt/v5"
"github.com/jarcoal/httpmock"
"github.com/samber/lo"
Expand Down
2 changes: 1 addition & 1 deletion client/keycloakJWTReceiverCachedInMemory.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"sync"

"github.com/Nerzal/gocloak/v12"
"github.com/Nerzal/gocloak/v13"
"github.com/golang-jwt/jwt/v5"
"github.com/rs/zerolog/log"
)
Expand Down
2 changes: 1 addition & 1 deletion client/keycloakJWTReceiverCachedInMemory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package client
import (
"testing"

"github.com/Nerzal/gocloak/v12"
"github.com/Nerzal/gocloak/v13"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)
Expand Down
2 changes: 1 addition & 1 deletion client/keycloakRepository.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package client
import (
"context"

"github.com/Nerzal/gocloak/v12"
"github.com/Nerzal/gocloak/v13"
)

type IKeycloakRepository interface {
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/greenbone/keycloak-client-golang
go 1.22

require (
github.com/Nerzal/gocloak/v12 v12.0.0
github.com/Nerzal/gocloak/v13 v13.9.0
github.com/gin-gonic/gin v1.10.0
github.com/golang-jwt/jwt/v5 v5.2.1
github.com/jarcoal/httpmock v1.3.1
Expand All @@ -25,7 +25,6 @@ require (
github.com/go-playground/validator/v10 v10.22.0 // indirect
github.com/go-resty/resty/v2 v2.13.1 // indirect
github.com/goccy/go-json v0.10.3 // indirect
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/Nerzal/gocloak/v12 v12.0.0 h1:oOddyLpf+CxdGHFx5bABn4yCAtIGDwJkvJP4hFSospY=
github.com/Nerzal/gocloak/v12 v12.0.0/go.mod h1:EAIc7luf3+dwMMHNWC9/X9vAA+KZJl5qfSWDIu7IlSs=
github.com/Nerzal/gocloak/v13 v13.9.0 h1:YWsJsdM5b0yhM2Ba3MLydiOlujkBry4TtdzfIzSVZhw=
github.com/Nerzal/gocloak/v13 v13.9.0/go.mod h1:YYuDcXZ7K2zKECyVP7pPqjKxx2AzYSpKDj8d6GuyM10=
github.com/bytedance/sonic v1.11.8 h1:Zw/j1KfiS+OYTi9lyB3bb0CFxPJVkM17k1wyDG32LRA=
github.com/bytedance/sonic v1.11.8/go.mod h1:LysEHSvpvDySVdC2f87zGWf6CIKJcAvqab1ZaiQtds4=
github.com/bytedance/sonic/loader v0.1.1 h1:c+e5Pt1k/cy5wMveRDyk2X4B9hF4g7an8N3zCYjJFNM=
Expand Down Expand Up @@ -31,8 +31,6 @@ github.com/go-resty/resty/v2 v2.13.1/go.mod h1:GznXlLxkq6Nh4sU59rPmUw3VtgpO3aS96
github.com/goccy/go-json v0.10.3 h1:KZ5WoDbxAIgm2HNbYckL0se1fHD6rz5j4ywS6ebzDqA=
github.com/goccy/go-json v0.10.3/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg=
github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk=
github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
Expand Down

0 comments on commit b49f5be

Please sign in to comment.