Skip to content

Commit

Permalink
Feature/kleros (#3)
Browse files Browse the repository at this point in the history
* add Kleros identity provider

* rework identity providers credential subject

* fix Kleros config

* fix Kleros metadata

* add Kleros to the config

* fix CI

* update iden3 core lib

* fix go.sum

* fix werf.yaml

* return 401 Unauthorized if user is not registered in Kleros

* minor fix
  • Loading branch information
freigeistig committed Jan 25, 2024
1 parent e82d58f commit 2c55ff5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/google/jsonapi v1.0.0
github.com/google/uuid v1.3.0
github.com/gorilla/websocket v1.5.0
github.com/iden3/go-iden3-core v1.0.2
github.com/iden3/go-iden3-core/v2 v2.0.2
github.com/imroc/req/v3 v3.37.1
github.com/pkg/errors v0.9.1
github.com/rarimo/issuer v0.1.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO
github.com/huin/goupnp v1.0.3 h1:N8No57ls+MnjlB+JPiCVSOyy/ot7MJTqlo7rn+NYSqQ=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/iden3/go-iden3-core v1.0.2 h1:HwNDFeqcUv4ybZj5tH+58JKWKarn/qqBpNCqTLxGP0Y=
github.com/iden3/go-iden3-core v1.0.2/go.mod h1:X4PjlJG8OsEQEsSbzzYqqAk2olYGZ2nuGqiUPyEYjOo=
github.com/iden3/go-iden3-core/v2 v2.0.2 h1:w5QA02Z+JoKt1DhoEm6IKo0VrXLsm9L33GhAZ1khJXY=
github.com/iden3/go-iden3-core/v2 v2.0.2/go.mod h1:L9PxhWPvoS9qTb3inEkZBm1RpjHBt+VTwvxssdzbAdw=
github.com/iden3/go-iden3-crypto v0.0.15 h1:4MJYlrot1l31Fzlo2sF56u7EVFeHHJkxGXXZCtESgK4=
github.com/iden3/go-iden3-crypto v0.0.15/go.mod h1:dLpM4vEPJ3nDHzhWFXDjzkn1qHoBeOT/3UEhXsEsP3E=
github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA=
Expand Down
2 changes: 1 addition & 1 deletion internal/data/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/google/uuid"
iden3core "github.com/iden3/go-iden3-core"
iden3core "github.com/iden3/go-iden3-core/v2"
"github.com/pkg/errors"
"gitlab.com/distributed_lab/kit/pgdb"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/service/api/requests/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/go-chi/chi"
validation "github.com/go-ozzo/ozzo-validation/v4"
iden3core "github.com/iden3/go-iden3-core"
iden3core "github.com/iden3/go-iden3-core/v2"
"github.com/pkg/errors"

providers "github.com/rarimo/kyc-service/internal/service/core/identity_providers"
Expand Down
2 changes: 1 addition & 1 deletion internal/service/core/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"

"github.com/google/uuid"
core "github.com/iden3/go-iden3-core"
core "github.com/iden3/go-iden3-core/v2"
"github.com/pkg/errors"

"github.com/rarimo/kyc-service/internal/crypto"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/ethereum/go-ethereum/common"
cryptoPkg "github.com/ethereum/go-ethereum/crypto"
"github.com/google/uuid"
core "github.com/iden3/go-iden3-core"
core "github.com/iden3/go-iden3-core/v2"
"github.com/imroc/req/v3"
"github.com/pkg/errors"
"gitlab.com/distributed_lab/logan/v3"
Expand Down
2 changes: 1 addition & 1 deletion internal/service/core/issuer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/rarimo/kyc-service/internal/config"

iden3core "github.com/iden3/go-iden3-core"
iden3core "github.com/iden3/go-iden3-core/v2"
"github.com/imroc/req/v3"
"github.com/pkg/errors"
"gitlab.com/distributed_lab/logan/v3"
Expand Down
1 change: 0 additions & 1 deletion werf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ shell:
- apk add git build-base
- cd /go/src/github.com/rarimo/kyc-service
- go mod tidy
- go mod vendor
setup:
- export CGO_ENABLED=0
- export GO111MODULE=on
Expand Down

0 comments on commit 2c55ff5

Please sign in to comment.