mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:47:32 +00:00
fix: backend bugs (#1449)
* i18n of compliance problems * fix: return iam member roles * remove u2f/passwordless * u2f/passwordless * fix rest path GetMachineKeyByIDs * fix rest path GetMachineKeyByIDs * fix email mime-type * fix: member preferred login name * machine users in notify * fix api key query * fix: todos grpc api * fix: handle user init state * fix: tests Co-authored-by: fabi <fabienne.gerschwiler@gmail.com>
This commit is contained in:
@@ -64,6 +64,7 @@ func NewHumanPasswordlessVerifiedEvent(
|
||||
publicKey,
|
||||
aaguid []byte,
|
||||
signCount uint32,
|
||||
userAgentID string,
|
||||
) *HumanPasswordlessVerifiedEvent {
|
||||
return &HumanPasswordlessVerifiedEvent{
|
||||
HumanWebAuthNVerifiedEvent: *NewHumanWebAuthNVerifiedEvent(
|
||||
@@ -79,6 +80,7 @@ func NewHumanPasswordlessVerifiedEvent(
|
||||
publicKey,
|
||||
aaguid,
|
||||
signCount,
|
||||
userAgentID,
|
||||
),
|
||||
}
|
||||
}
|
||||
|
@@ -64,6 +64,7 @@ func NewHumanU2FVerifiedEvent(
|
||||
publicKey,
|
||||
aaguid []byte,
|
||||
signCount uint32,
|
||||
userAgentID string,
|
||||
) *HumanU2FVerifiedEvent {
|
||||
return &HumanU2FVerifiedEvent{
|
||||
HumanWebAuthNVerifiedEvent: *NewHumanWebAuthNVerifiedEvent(
|
||||
@@ -79,6 +80,7 @@ func NewHumanU2FVerifiedEvent(
|
||||
publicKey,
|
||||
aaguid,
|
||||
signCount,
|
||||
userAgentID,
|
||||
),
|
||||
}
|
||||
}
|
||||
|
@@ -2,6 +2,7 @@ package user
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/caos/zitadel/internal/domain"
|
||||
"github.com/caos/zitadel/internal/errors"
|
||||
"github.com/caos/zitadel/internal/eventstore"
|
||||
@@ -56,6 +57,7 @@ type HumanWebAuthNVerifiedEvent struct {
|
||||
AAGUID []byte `json:"aaguid"`
|
||||
SignCount uint32 `json:"signCount"`
|
||||
WebAuthNTokenName string `json:"webAuthNTokenName"`
|
||||
UserAgentID string `json:"userAgentID,omitempty"`
|
||||
}
|
||||
|
||||
func (e *HumanWebAuthNVerifiedEvent) Data() interface{} {
|
||||
@@ -75,6 +77,7 @@ func NewHumanWebAuthNVerifiedEvent(
|
||||
publicKey,
|
||||
aaguid []byte,
|
||||
signCount uint32,
|
||||
userAgentID string,
|
||||
) *HumanWebAuthNVerifiedEvent {
|
||||
return &HumanWebAuthNVerifiedEvent{
|
||||
BaseEvent: *base,
|
||||
@@ -85,6 +88,7 @@ func NewHumanWebAuthNVerifiedEvent(
|
||||
AAGUID: aaguid,
|
||||
SignCount: signCount,
|
||||
WebAuthNTokenName: webAuthNTokenName,
|
||||
UserAgentID: userAgentID,
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -69,8 +69,6 @@ func MachineAddedEventMapper(event *repository.Event) (eventstore.EventReader, e
|
||||
type MachineChangedEvent struct {
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
|
||||
UserName string `json:"userName"`
|
||||
|
||||
Name *string `json:"name,omitempty"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user