Skip to content

Commit

Permalink
fix: write org id to amr
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Oct 24, 2023
1 parent e5a3504 commit b0f32e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion selfservice/flow/login/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func (e *HookExecutor) maybeLinkCredentials(r *http.Request, s *session.Session,
}

method := strategy.CompletedAuthenticationMethod(r.Context())
s.CompletedLoginFor(method.Method, method.AAL)
s.CompletedLoginForWithProvider(method.Method, method.AAL, method.Provider, method.Organization)

return nil
}
Expand Down
1 change: 1 addition & 0 deletions selfservice/strategy/oidc/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ func (s *Strategy) linkCredentials(ctx context.Context, i *identity.Identity, id
return err
}
}

i.Credentials[s.ID()] = *creds
if organization != "" {
orgID, err := uuid.FromString(organization)
Expand Down

0 comments on commit b0f32e9

Please sign in to comment.