Upgrade kratos-client-go to v0.10.1

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>
This commit is contained in:
Akshay Gaikwad
2022-12-22 13:37:38 +05:30
parent c532bacb37
commit 28238fd154
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ require (
github.com/google/uuid v1.3.0
github.com/grpc-ecosystem/grpc-gateway v1.16.0
github.com/json-iterator/go v1.1.12
github.com/ory/kratos-client-go v0.8.2-alpha.1
github.com/ory/kratos-client-go v0.10.1
github.com/pkg/errors v0.9.1
github.com/processout/grpc-go-pool v1.2.1
github.com/rs/xid v1.3.0
+2
View File
@@ -666,6 +666,8 @@ github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+
github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc=
github.com/ory/kratos-client-go v0.8.2-alpha.1 h1:YlKhGOSZjounlB9iY4xSWlqHbyLYkeLzlLk8ZL7/nEM=
github.com/ory/kratos-client-go v0.8.2-alpha.1/go.mod h1:dOQIsar76K07wMPJD/6aMhrWyY+sFGEagLDLso1CpsA=
github.com/ory/kratos-client-go v0.10.1 h1:kSRk+0leCJ1nPMS+FPho8b9WMzrKNpgszvta0Xo32QU=
github.com/ory/kratos-client-go v0.10.1/go.mod h1:dOQIsar76K07wMPJD/6aMhrWyY+sFGEagLDLso1CpsA=
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
+1 -1
View File
@@ -36,7 +36,7 @@ func (k *kratosAuthProvider) Create(ctx context.Context, traits map[string]inter
}
func (k *kratosAuthProvider) Update(ctx context.Context, id string, traits map[string]interface{}) error {
uib := kclient.NewAdminUpdateIdentityBody("active", traits)
uib := kclient.NewAdminUpdateIdentityBody("default", "active", traits)
_, hr, err := k.kc.V0alpha2Api.AdminUpdateIdentity(ctx, id).AdminUpdateIdentityBody(*uib).Execute()
if err != nil {
fmt.Println(hr)