Skip to content

Commit

Permalink
fix: oidc api new user login default schema
Browse files Browse the repository at this point in the history
  • Loading branch information
splaunov committed Apr 2, 2022
1 parent 21fb888 commit 60d0a1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions selfservice/strategy/oidc/strategy_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"fmt"
"github.com/google/go-jsonnet"
"github.com/ory/kratos/driver/config"
"github.com/ory/kratos/schema"
"github.com/ory/x/decoderx"
"github.com/ory/x/fetcher"
Expand Down Expand Up @@ -230,7 +229,7 @@ func (s *Strategy) Login(w http.ResponseWriter, r *http.Request, f *login.Flow,
if !errors.Is(err, sqlcon.ErrNoRows) {
return nil, err
}
i = identity.NewIdentity(config.DefaultIdentityTraitsSchemaID)
i = identity.NewIdentity(s.d.Config(r.Context()).DefaultIdentityTraitsSchemaID())

fetch := fetcher.NewFetcher(fetcher.WithClient(s.d.HTTPClient(r.Context())))
jn, err := fetch.Fetch(provider.Config().Mapper)
Expand Down

0 comments on commit 60d0a1e

Please sign in to comment.