Skip to content

Commit

Permalink
Fix issue with credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
peturgeorgievv committed Jul 7, 2023
1 parent 115096e commit f439020
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions selfservice/strategy/oidc/strategy_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ func (s *Strategy) processLogin(w http.ResponseWriter, r *http.Request, a *login
}

i.Traits = newTraits
if i.Credentials == nil {
i.Credentials = make(map[identity.CredentialsType]identity.Credentials)
}

i.Credentials[identity.CredentialsTypeOIDC] = *c

err = s.d.PrivilegedIdentityPool().UpdateIdentity(r.Context(), i)
if err != nil {
Expand Down

0 comments on commit f439020

Please sign in to comment.